]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
idpf: remove duplicate defines in IDPF_CAP_RSS
authorSreedevi Joshi <sreedevi.joshi@intel.com>
Fri, 19 Sep 2025 16:59:05 +0000 (11:59 -0500)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 29 Oct 2025 20:55:22 +0000 (13:55 -0700)
Remove duplicate defines from the OR operation when defining IDPF_CAP_RSS.

Duplicate definitions were introduced when IDPF_CAP_RSS was originally
defined and were left behind and went unnoticed during a previous commit
that renamed them. Review of the original out-of-tree code confirms these
duplicates were the result of a typing error.

Remove the duplicates to clean up the code and avoid potential confusion.
Also verify no other duplicate occurrences of these defines exist
elsewhere in the codebase.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Sreedevi Joshi <sreedevi.joshi@intel.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf.h

index ca4da0c8997947084e52c646417f8a1a94f875e0..50fa7be0c00d4000734732e7e576161aa1e109d4 100644 (file)
@@ -734,13 +734,11 @@ static inline bool idpf_is_rdma_cap_ena(struct idpf_adapter *adapter)
 }
 
 #define IDPF_CAP_RSS (\
-       VIRTCHNL2_FLOW_IPV4_TCP         |\
        VIRTCHNL2_FLOW_IPV4_TCP         |\
        VIRTCHNL2_FLOW_IPV4_UDP         |\
        VIRTCHNL2_FLOW_IPV4_SCTP        |\
        VIRTCHNL2_FLOW_IPV4_OTHER       |\
        VIRTCHNL2_FLOW_IPV6_TCP         |\
-       VIRTCHNL2_FLOW_IPV6_TCP         |\
        VIRTCHNL2_FLOW_IPV6_UDP         |\
        VIRTCHNL2_FLOW_IPV6_SCTP        |\
        VIRTCHNL2_FLOW_IPV6_OTHER)