]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ionic: fix rxq comp packet type mask
authorShannon Nelson <snelson@pensando.io>
Thu, 30 Jan 2020 18:07:06 +0000 (10:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:38 +0000 (04:36 -0800)
[ Upstream commit b5ce31b5e11b768b7d685b2bab7db09ad5549493 ]

Be sure to include all the packet type bits in the mask.

Fixes: fbfb8031533c ("ionic: Add hardware init and device commands")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/pensando/ionic/ionic_if.h

index 39317cdfa6cf816035abb4e7de11d41c4ef3a11f..ed23a05f2642fb28c29ab5ee0075985f0d52af2c 100644 (file)
@@ -862,7 +862,7 @@ struct ionic_rxq_comp {
 #define IONIC_RXQ_COMP_CSUM_F_VLAN     0x40
 #define IONIC_RXQ_COMP_CSUM_F_CALC     0x80
        u8     pkt_type_color;
-#define IONIC_RXQ_COMP_PKT_TYPE_MASK   0x0f
+#define IONIC_RXQ_COMP_PKT_TYPE_MASK   0x7f
 };
 
 enum ionic_pkt_type {