liquidio: Configure switchdev with devlink
authorVijaya Mohan Guvva <vijaya.guvva@cavium.com>
Tue, 31 Oct 2017 23:04:57 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:39:52 +0000 (11:39 +0900)
commitd4be8ebefb449c43b7daa5c9d23b22cd20c17258
treeb02c3df708107a9320d616eaa63013be12d8e3bf
parent1f233f327913f3dee0602cba9c64df1903772b55
liquidio: Configure switchdev with devlink

Enable and disable switchdev on SRIOV capable LiquidIO NIC with devlink.
Create representor netdev for each SRIOV VF function on SRIOV enable and
and do the cleanup on SRIOV disable.

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/Kconfig
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
drivers/net/ethernet/cavium/liquidio/octeon_device.h