Commit 75c30b13 authored by Ananda Raju's avatar Ananda Raju Committed by Jeff Garzik

[PATCH] s2io driver bug fixes #2

	This patch contains some of the bug fixes and enhancements done to
	s2io driver. Following are the brief description of changes

	1. code cleanup to handle gso modification better
	2. Move repeated code in rx path, to a common function
	   s2io_chk_rx_buffers()
	3. Bug fix in MSI interrupt
	4. clear statistics when card is down
	5. Avoid linked list traversing in lro aggregation.
	6. Use pci_dma_sync_single_for_cpu for buffer0 in case of 2/3
	   buffer mode.
	7. ethtool tso get/set functions to set clear NETIF_F_TSO6
	8. Stop LRO aggregation when we receive ECN notification
Signed-off-by: default avatarAnanda Raju <ananda.raju@neterion.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent b41477f3
This diff is collapsed.
...@@ -719,6 +719,7 @@ struct msix_info_st { ...@@ -719,6 +719,7 @@ struct msix_info_st {
/* Data structure to represent a LRO session */ /* Data structure to represent a LRO session */
typedef struct lro { typedef struct lro {
struct sk_buff *parent; struct sk_buff *parent;
struct sk_buff *last_frag;
u8 *l2h; u8 *l2h;
struct iphdr *iph; struct iphdr *iph;
struct tcphdr *tcph; struct tcphdr *tcph;
...@@ -1012,6 +1013,10 @@ static void queue_rx_frame(struct sk_buff *skb); ...@@ -1012,6 +1013,10 @@ static void queue_rx_frame(struct sk_buff *skb);
static void update_L3L4_header(nic_t *sp, lro_t *lro); static void update_L3L4_header(nic_t *sp, lro_t *lro);
static void lro_append_pkt(nic_t *sp, lro_t *lro, struct sk_buff *skb, u32 tcp_len); static void lro_append_pkt(nic_t *sp, lro_t *lro, struct sk_buff *skb, u32 tcp_len);
#define s2io_tcp_mss(skb) skb_shinfo(skb)->gso_size
#define s2io_udp_mss(skb) skb_shinfo(skb)->gso_size
#define s2io_offload_type(skb) skb_shinfo(skb)->gso_type
#define S2IO_PARM_INT(X, def_val) \ #define S2IO_PARM_INT(X, def_val) \
static unsigned int X = def_val;\ static unsigned int X = def_val;\
module_param(X , uint, 0); module_param(X , uint, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment