OSDN Git Service

liquidio: switchdev support for LiquidIO NIC
authorVijaya Mohan Guvva <vijaya.guvva@cavium.com>
Tue, 31 Oct 2017 23:04:53 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:39:52 +0000 (11:39 +0900)
commit1f233f327913f3dee0602cba9c64df1903772b55
tree1585190f2b73bf000967ece82a5861cc917ca14e
parent2278f51421f54432dc2e4e25c39d46925f59a359
liquidio: switchdev support for LiquidIO NIC

Enable switchdev for SRIOV capable LiquidIO NIC. It registers
a representor netdev (with switchdev_ops) for each SRIOV VF created.
It also has changes to send representor interface configurations like
admin state and MTU to LiquidIO firmware and to retrieve HW counted
VF stats for VF representor.

Signed-off-by: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@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/Makefile
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c [new file with mode: 0644]
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.h [new file with mode: 0644]
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
drivers/net/ethernet/cavium/liquidio/octeon_device.h