aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb3/l2t.c
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-30 15:40:35 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-31 16:48:30 -0500
commit4c1120b623758fd2f2dee9b8995d0e8cba1c2365 (patch)
treefe758be5878cec6aea838e092a096c46be29ef00 /drivers/net/ethernet/chelsio/cxgb3/l2t.c
parentnet: bnx2x: slight optimization of addr compare (diff)
downloadlinux-dev-4c1120b623758fd2f2dee9b8995d0e8cba1c2365.tar.xz
linux-dev-4c1120b623758fd2f2dee9b8995d0e8cba1c2365.zip
net: cxgb3: slight optimization of addr compare
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: Santosh Raspatur <santosh@chelsio.com> Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3/l2t.c')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/l2t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/l2t.c b/drivers/net/ethernet/chelsio/cxgb3/l2t.c
index 8d53438638b2..5f226eda8cd6 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/l2t.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/l2t.c
@@ -429,7 +429,7 @@ found:
} else {
e->state = neigh->nud_state & NUD_CONNECTED ?
L2T_STATE_VALID : L2T_STATE_STALE;
- if (memcmp(e->dmac, neigh->ha, 6))
+ if (!ether_addr_equal(e->dmac, neigh->ha))
setup_l2e_send_pending(dev, NULL, e);
}
}