nfp: add SR-IOV trusted VF support
authorPablo Cascón <pablo.cascon@netronome.com>
Sat, 20 Apr 2019 00:20:09 +0000 (17:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Apr 2019 04:00:31 +0000 (21:00 -0700)
commit4ef6cbe80d71058dfd53f11a2801be4b6d227a4a
treec9380fcd47cf9717d325449d8e9dfc3447653b64
parent5313794b7915f61d1f503bfa54fbec47ffd8be0b
nfp: add SR-IOV trusted VF support

By default VFs are not trusted. Add ndo_set_vf_trust support to toggle
a new per-VF bit. Coupled with FW with this capability allows a
trusted VF to change its MAC even after being administratively set by
the PF. Also populate the trusted field on ndo_get_vf_config. Add the
same ndo to the representors.

Signed-off-by: Pablo Cascón <pablo.cascon@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.h