]> 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)
commit03fd1f9923ab211795f61438c42a3f49c0e5592f
treefb680d0a936941bb6f76fa826be3889f1b1f49ac
parentf46049a33168ebe404886a2c0d7890e302762199
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