diff options
author | 2022-09-26 19:57:31 +0100 | |
---|---|---|
committer | 2022-09-28 09:43:22 +0100 | |
commit | 9dc0cad203ab57efac34e6bcb67635edf3b62ebf (patch) | |
tree | eb1fdfdfb6f921c0190fead69650966a7e757f53 /drivers/net/ethernet/sfc/ef100_nic.c | |
parent | net: ethernet: rmnet: Replace zero-length array with DECLARE_FLEX_ARRAY() helper (diff) | |
download | linux-dev-9dc0cad203ab57efac34e6bcb67635edf3b62ebf.tar.xz linux-dev-9dc0cad203ab57efac34e6bcb67635edf3b62ebf.zip |
sfc: bind blocks for TC offload on EF100
Bind direct blocks for the MAE-admin PF and each VF representor.
Currently these connect to a stub efx_tc_flower() that only returns
-EOPNOTSUPP; subsequent patches will implement flower offloads to the
Match-Action Engine.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_nic.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ef100_nic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_nic.c b/drivers/net/ethernet/sfc/ef100_nic.c index 8061efdaf82c..ad686c671ab8 100644 --- a/drivers/net/ethernet/sfc/ef100_nic.c +++ b/drivers/net/ethernet/sfc/ef100_nic.c @@ -1137,6 +1137,9 @@ int ef100_probe_netdev_pf(struct efx_nic *efx) */ netif_warn(efx, probe, net_dev, "Failed to probe MAE rc %d\n", rc); + } else { + net_dev->features |= NETIF_F_HW_TC; + efx->fixed_features |= NETIF_F_HW_TC; } #endif return 0; |