rate limit some error messages

This commit is contained in:
Luigi Rizzo 2014-06-06 14:57:40 +00:00
parent 5899a007ae
commit d8e1c53b15

View File

@ -1072,7 +1072,7 @@ netmap_bdg_learning(char *buf, u_int buf_len, uint8_t *dst_ring,
uint64_t smac, dmac;
if (buf_len < 14) {
D("invalid buf length %d", buf_len);
RD(5, "invalid buf length %d", buf_len);
return NM_BDG_NOPORT;
}
dmac = le64toh(*(uint64_t *)(buf)) & 0xffffffffffff;