]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit488752220b4a73ae131ca3e7c0c83b9f1bf092e4
treefb680d0a936941bb6f76fa826be3889f1b1f49ac
parentddc9cc0131619382678771b0b85632f28bcf2521
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