Patch "bnxt_en: ethtool: Supply ntuple rss context action" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bnxt_en: ethtool: Supply ntuple rss context action

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bnxt_en-ethtool-supply-ntuple-rss-context-action.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fe8d58a113948c59d42428b75d6b626e7165a99b
Author: Daniel Xu <dxu@xxxxxxxxx>
Date:   Wed Nov 27 15:58:29 2024 -0700

    bnxt_en: ethtool: Supply ntuple rss context action
    
    [ Upstream commit be75cda92a65a13db242117d674cd5584477a168 ]
    
    Commit 2f4f9fe5bf5f ("bnxt_en: Support adding ntuple rules on RSS
    contexts") added support for redirecting to an RSS context as an ntuple
    rule action. However, it forgot to update the ETHTOOL_GRXCLSRULE
    codepath. This caused `ethtool -n` to always report the action as
    "Action: Direct to queue 0" which is wrong.
    
    Fix by teaching bnxt driver to report the RSS context when applicable.
    
    Fixes: 2f4f9fe5bf5f ("bnxt_en: Support adding ntuple rules on RSS contexts")
    Reviewed-by: Michael Chan <michael.chan@xxxxxxxxxxxx>
    Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>
    Link: https://patch.msgid.link/2e884ae39e08dc5123be7c170a6089cefe6a78f7.1732748253.git.dxu@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
index 20ba14eb87e00..b901ecb57f255 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
@@ -1193,10 +1193,14 @@ static int bnxt_grxclsrule(struct bnxt *bp, struct ethtool_rxnfc *cmd)
 		}
 	}
 
-	if (fltr->base.flags & BNXT_ACT_DROP)
+	if (fltr->base.flags & BNXT_ACT_DROP) {
 		fs->ring_cookie = RX_CLS_FLOW_DISC;
-	else
+	} else if (fltr->base.flags & BNXT_ACT_RSS_CTX) {
+		fs->flow_type |= FLOW_RSS;
+		cmd->rss_context = fltr->base.fw_vnic_id;
+	} else {
 		fs->ring_cookie = fltr->base.rxq;
+	}
 	rc = 0;
 
 fltr_err:




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux