aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-05-07 06:39:35 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-07 17:52:30 -0400
commitdfa12f05f60eb23b1670f3a7756ed814f886a7fb (patch)
tree494057fe097880eb6c795400ed4840f0a6b46b8b /drivers/net/ixgbe
parent163de42e240623694562656542adedbca369beaf (diff)
ixgbe: Enable L2 header split in 82599
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>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c3
-rw-r--r--drivers/net/ixgbe/ixgbe_type.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index d64a2d7d5fa5..01d8b6b12be6 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1818,7 +1818,8 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
1818 u32 psrtype = IXGBE_PSRTYPE_TCPHDR | 1818 u32 psrtype = IXGBE_PSRTYPE_TCPHDR |
1819 IXGBE_PSRTYPE_UDPHDR | 1819 IXGBE_PSRTYPE_UDPHDR |
1820 IXGBE_PSRTYPE_IPV4HDR | 1820 IXGBE_PSRTYPE_IPV4HDR |
1821 IXGBE_PSRTYPE_IPV6HDR; 1821 IXGBE_PSRTYPE_IPV6HDR |
1822 IXGBE_PSRTYPE_L2HDR;
1822 IXGBE_WRITE_REG(hw, IXGBE_PSRTYPE(0), psrtype); 1823 IXGBE_WRITE_REG(hw, IXGBE_PSRTYPE(0), psrtype);
1823 } 1824 }
1824 } else { 1825 } else {
diff --git a/drivers/net/ixgbe/ixgbe_type.h b/drivers/net/ixgbe/ixgbe_type.h
index e49e8af59eda..9fd79a05ff0f 100644
--- a/drivers/net/ixgbe/ixgbe_type.h
+++ b/drivers/net/ixgbe/ixgbe_type.h
@@ -1604,6 +1604,7 @@
1604#define IXGBE_PSRTYPE_UDPHDR 0x00000020 1604#define IXGBE_PSRTYPE_UDPHDR 0x00000020
1605#define IXGBE_PSRTYPE_IPV4HDR 0x00000100 1605#define IXGBE_PSRTYPE_IPV4HDR 0x00000100
1606#define IXGBE_PSRTYPE_IPV6HDR 0x00000200 1606#define IXGBE_PSRTYPE_IPV6HDR 0x00000200
1607#define IXGBE_PSRTYPE_L2HDR 0x00001000
1607 1608
1608/* SRRCTL bit definitions */ 1609/* SRRCTL bit definitions */
1609#define IXGBE_SRRCTL_BSIZEPKT_SHIFT 10 /* so many KBs */ 1610#define IXGBE_SRRCTL_BSIZEPKT_SHIFT 10 /* so many KBs */