projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42df16
)
ixgbevf: Do not forward LLDP type frames
author
Greg Rose
<
[email protected]
>
Tue, 2 Oct 2012 00:50:52 +0000
(
00:50
+0000)
committer
Jeff Kirsher
<
[email protected]
>
Tue, 30 Oct 2012 06:48:46 +0000
(23:48 -0700)
The driver should not forward LLDP type frames. Inspect the ether type and
do not send if it is an LLDP ethertype frame.
Signed-off-by: Greg Rose <
[email protected]
>
Tested-by: Sibai Li <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 07d7eaba6f1b3aa088d7be45f994220a8af27331..b5979ba52b4c979bafe67b8e101c57b53b20487f 100644
(file)
--- a/
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@
-2968,6
+2968,11
@@
static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
#if PAGE_SIZE > IXGBE_MAX_DATA_PER_TXD
unsigned short f;
#endif
+ u8 *dst_mac = skb_header_pointer(skb, 0, 0, NULL);
+ if (!dst_mac || is_link_local(dst_mac)) {
+ dev_kfree_skb(skb);
+ return NETDEV_TX_OK;
+ }
tx_ring = &adapter->tx_ring[r_idx];