]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: Add spoof checking on a VF MAC address
authorWeilin Chang <weilin.chang@cavium.com>
Thu, 6 Sep 2018 01:40:56 +0000 (18:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 22:52:18 +0000 (15:52 -0700)
commit3896e0527eef2138435b79b7e5d8d721a3594bb7
treefb680d0a936941bb6f76fa826be3889f1b1f49ac
parent2a6c3a8f9a4af264d0e701f60d26e4cfadf24b87
liquidio: Add spoof checking on a VF MAC address

1. Provide the API to set/unset the spoof checking feature.
2. Add a function to periodically provide the count of found
   packets with spoof VF MAC address.
3. Prevent VF MAC address changing while the spoofchk of the VF is
   on unless the changing MAC address is issued from PF.

Signed-off-by: Weilin Chang <weilin.chang@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_core.c
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
drivers/net/ethernet/cavium/liquidio/octeon_device.h
drivers/net/ethernet/cavium/liquidio/octeon_network.h
drivers/net/ethernet/cavium/liquidio/octeon_nic.c