mbox series

[V3,net-next,0/2] liquidio: switchdev support for LiquidIO NIC

Message ID 20171031230420.GA3615@felix-thinkpad.cavium.com
Headers show
Series liquidio: switchdev support for LiquidIO NIC | expand

Message

Manlunas, Felix Oct. 31, 2017, 11:04 p.m. UTC
From: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>

patch1 of this patch set adds switchdev support for SRIOV capable
LiquidIO NIC, so that for every SRIOV VF on LiquidIO, a representor
netdev is created on hypervisor. 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.

patch2 adds support for switchdev enable/disable from devlink

Patchset Change Log:
  V2 -> V3:
    * Use mac address as the physical switchID.
    * Check for eswitch_mode before returning switchID

  V1 -> V2:
    * Name the representors "pfXvfY".
    * Drop patch3 (ethtool support for switchdev ports) that was in V1
      because it's not necessary.

Vijaya Mohan Guvva (2):
  liquidio: switchdev support for LiquidIO NIC
  liquidio: Configure switchdev with devlink

 drivers/net/ethernet/cavium/Kconfig                |   1 +
 drivers/net/ethernet/cavium/liquidio/Makefile      |   2 +-
 drivers/net/ethernet/cavium/liquidio/lio_main.c    | 118 ++++
 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c  | 627 +++++++++++++++++++++
 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.h  |  47 ++
 .../net/ethernet/cavium/liquidio/liquidio_common.h |  50 ++
 .../net/ethernet/cavium/liquidio/octeon_device.h   |  14 +
 7 files changed, 858 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c
 create mode 100644 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.h

Comments

Jakub Kicinski Oct. 31, 2017, 11:30 p.m. UTC | #1
On Tue, 31 Oct 2017 16:04:20 -0700, Felix Manlunas wrote:
> From: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>
> 
> patch1 of this patch set adds switchdev support for SRIOV capable
> LiquidIO NIC, so that for every SRIOV VF on LiquidIO, a representor
> netdev is created on hypervisor. 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.
> 
> patch2 adds support for switchdev enable/disable from devlink
> 
> Patchset Change Log:
>   V2 -> V3:
>     * Use mac address as the physical switchID.
>     * Check for eswitch_mode before returning switchID

Looks better, thanks!
David Miller Nov. 1, 2017, 2:40 a.m. UTC | #2
From: Felix Manlunas <felix.manlunas@cavium.com>
Date: Tue, 31 Oct 2017 16:04:20 -0700

> From: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>
> 
> patch1 of this patch set adds switchdev support for SRIOV capable
> LiquidIO NIC, so that for every SRIOV VF on LiquidIO, a representor
> netdev is created on hypervisor. 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.
> 
> patch2 adds support for switchdev enable/disable from devlink
> 
> Patchset Change Log:
>   V2 -> V3:
>     * Use mac address as the physical switchID.
>     * Check for eswitch_mode before returning switchID
> 
>   V1 -> V2:
>     * Name the representors "pfXvfY".
>     * Drop patch3 (ethtool support for switchdev ports) that was in V1
>       because it's not necessary.

Series applied, thanks.