diff options
author | Vijaya Mohan Guvva <vijaya.guvva@cavium.com> | 2017-11-01 02:04:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 05:39:52 +0300 |
commit | 1f233f327913f3dee0602cba9c64df1903772b55 (patch) | |
tree | 1585190f2b73bf000967ece82a5861cc917ca14e /drivers/net/ethernet/cavium/liquidio/octeon_device.h | |
parent | 2278f51421f54432dc2e4e25c39d46925f59a359 (diff) | |
download | linux-1f233f327913f3dee0602cba9c64df1903772b55.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/octeon_device.h')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/octeon_device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.h b/drivers/net/ethernet/cavium/liquidio/octeon_device.h index 33d19c4509bc..c97e067a8974 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_device.h +++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.h @@ -391,6 +391,11 @@ struct octeon_ioq_vector { u32 ioq_num; }; +struct lio_vf_rep_list { + int num_vfs; + struct net_device *ndev[CN23XX_MAX_VFS_PER_PF]; +}; + /** The Octeon device. * Each Octeon device has this structure to represent all its * components. @@ -568,6 +573,8 @@ struct octeon_device { atomic_t *adapter_fw_state; /* per-adapter, lio_fw_state */ bool ptp_enable; + + struct lio_vf_rep_list vf_rep_list; }; #define OCT_DRV_ONLINE 1 |