Commit 33ce1d41 authored by Brett Creeley's avatar Brett Creeley Committed by Paolo Abeni
Browse files

ionic: Use VLAN_ETH_HLEN when possible



Replace when ETH_HLEN and VLAN_HLEN are used together with
VLAN_ETH_HLEN since it's the same value and uses 1 define
instead of 2.

Signed-off-by: default avatarBrett Creeley <brett.creeley@amd.com>
Signed-off-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4aa567b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3265,7 +3265,7 @@ int ionic_lif_alloc(struct ionic *ionic)
	lif->netdev->min_mtu = max_t(unsigned int, ETH_MIN_MTU,
				     le32_to_cpu(lif->identity->eth.min_frame_size));
	lif->netdev->max_mtu =
		le32_to_cpu(lif->identity->eth.max_frame_size) - ETH_HLEN - VLAN_HLEN;
		le32_to_cpu(lif->identity->eth.max_frame_size) - VLAN_ETH_HLEN;

	lif->neqs = ionic->neqs_per_lif;
	lif->nxqs = ionic->ntxqs_per_lif;