Skip to content

Commit 83d14c5

Browse files
Carolyn WybornyJeff Kirsher
authored andcommitted
i40e: Add message for unsupported MFP mode
This patch adds a check and message if the device is in MFP mode as changing RSS input set is not supported in MFP mode. Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 68fb13a commit 83d14c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_ethtool.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,12 @@ static int i40e_set_rss_hash_opt(struct i40e_pf *pf, struct ethtool_rxnfc *nfc)
27112711
u8 flow_pctype = 0;
27122712
u64 i_set, i_setc;
27132713

2714+
if (pf->flags & I40E_FLAG_MFP_ENABLED) {
2715+
dev_err(&pf->pdev->dev,
2716+
"Change of RSS hash input set is not supported when MFP mode is enabled\n");
2717+
return -EOPNOTSUPP;
2718+
}
2719+
27142720
/* RSS does not support anything other than hashing
27152721
* to queues on src and dst IPs and ports
27162722
*/

0 commit comments

Comments
 (0)