aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx_common.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-06-30 13:15:10 +0100
committerDavid S. Miller <davem@davemloft.net>2020-06-30 13:09:09 -0700
commitf07cb4128abb2bbb69bdc7d37a3d69147cb13dcd (patch)
treee61ad2e3957aa28a6312bc8d1af61ecf059be878 /drivers/net/ethernet/sfc/efx_common.c
parentsfc: commonise efx->[rt]xq_entries initialisation (diff)
downloadlinux-f07cb4128abb2bbb69bdc7d37a3d69147cb13dcd.tar.xz
linux-f07cb4128abb2bbb69bdc7d37a3d69147cb13dcd.zip
sfc: commonise initialisation of efx->vport_id
Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx_common.c')
-rw-r--r--drivers/net/ethernet/sfc/efx_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx_common.c b/drivers/net/ethernet/sfc/efx_common.c
index 822e9e147404..a2f744377aaa 100644
--- a/drivers/net/ethernet/sfc/efx_common.c
+++ b/drivers/net/ethernet/sfc/efx_common.c
@@ -1018,6 +1018,7 @@ int efx_init_struct(struct efx_nic *efx,
efx->type->rx_ts_offset - efx->type->rx_prefix_size;
INIT_LIST_HEAD(&efx->rss_context.list);
mutex_init(&efx->rss_lock);
+ efx->vport_id = EVB_PORT_ID_ASSIGNED;
spin_lock_init(&efx->stats_lock);
efx->vi_stride = EFX_DEFAULT_VI_STRIDE;
efx->num_mac_stats = MC_CMD_MAC_NSTATS;