]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ixgbe: Enable L2 header split in 82599
authorYi Zou <yi.zou@intel.com>
Thu, 7 May 2009 10:39:35 +0000 (10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2009 21:52:30 +0000 (14:52 -0700)
This enables L2 header split when packet split is enabled for 82599.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbe/ixgbe_type.h

index d64a2d7d5fa54714427fe17317554a614d3443bf..01d8b6b12be6ecc46bc1bca0c38e5095047b0e6f 100644 (file)
@@ -1818,7 +1818,8 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
                        u32 psrtype = IXGBE_PSRTYPE_TCPHDR |
                                      IXGBE_PSRTYPE_UDPHDR |
                                      IXGBE_PSRTYPE_IPV4HDR |
-                                     IXGBE_PSRTYPE_IPV6HDR;
+                                     IXGBE_PSRTYPE_IPV6HDR |
+                                     IXGBE_PSRTYPE_L2HDR;
                        IXGBE_WRITE_REG(hw, IXGBE_PSRTYPE(0), psrtype);
                }
        } else {
index e49e8af59edae324b54ddd8f1b43e79db3a768bd..9fd79a05ff0fd4f61c95595ff72925b61f19f0c5 100644 (file)
 #define IXGBE_PSRTYPE_UDPHDR    0x00000020
 #define IXGBE_PSRTYPE_IPV4HDR   0x00000100
 #define IXGBE_PSRTYPE_IPV6HDR   0x00000200
+#define IXGBE_PSRTYPE_L2HDR     0x00001000
 
 /* SRRCTL bit definitions */
 #define IXGBE_SRRCTL_BSIZEPKT_SHIFT     10     /* so many KBs */