Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6423ff1 authored by Akeem G Abodunrin's avatar Akeem G Abodunrin Committed by Jeff Kirsher
Browse files

i40e: Fix incorrect feature configuration status



This patch fixes an issue where FD SB/ATR and NTUPLE configurations status are
reported erroneously. Without this patch, driver reports FDir without further
information.

Change-ID: I5bdd2871b7f2db1e5f5e76c741ae6a0dc603b453
Signed-off-by: default avatarAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent b34f90e7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -8237,11 +8237,12 @@ static void i40e_print_features(struct i40e_pf *pf)

	if (pf->flags & I40E_FLAG_RSS_ENABLED)
		buf += sprintf(buf, "RSS ");
	buf += sprintf(buf, "FDir ");
	if (pf->flags & I40E_FLAG_FD_ATR_ENABLED)
		buf += sprintf(buf, "ATR ");
	if (pf->flags & I40E_FLAG_FD_SB_ENABLED)
		buf += sprintf(buf, "FD_ATR ");
	if (pf->flags & I40E_FLAG_FD_SB_ENABLED) {
		buf += sprintf(buf, "FD_SB ");
		buf += sprintf(buf, "NTUPLE ");
	}
	if (pf->flags & I40E_FLAG_DCB_ENABLED)
		buf += sprintf(buf, "DCB ");
	if (pf->flags & I40E_FLAG_PTP)