]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Add message for unsupported MFP mode
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 7 Jun 2017 09:43:07 +0000 (05:43 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:24 +0000 (14:15 -0700)
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>
Orabug: 26785018
(cherry picked from commit 83d14c595e011f96c47e5fb09ddb51902e8367aa)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index 40df21898b5c18a4947c38678fb8bd3b00018523..9fa9b2d26bb19b73f8eef03e35ea15b829054f74 100644 (file)
@@ -2672,6 +2672,12 @@ static int i40e_set_rss_hash_opt(struct i40e_pf *pf, struct ethtool_rxnfc *nfc)
        u8 flow_pctype = 0;
        u64 i_set, i_setc;
 
+       if (pf->flags & I40E_FLAG_MFP_ENABLED) {
+               dev_err(&pf->pdev->dev,
+                       "Change of RSS hash input set is not supported when MFP mode is enabled\n");
+               return -EOPNOTSUPP;
+       }
+
        /* RSS does not support anything other than hashing
         * to queues on src and dst IPs and ports
         */