Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368303
b: refs/heads/master
c: 9a18dd1
h: refs/heads/master
i:
  368301: 1ec393f
  368299: 5ec0f64
  368295: a31d0be
  368287: e6b996e
v: v3
  • Loading branch information
Li RongQing authored and David S. Miller committed Mar 18, 2013
1 parent 56c2af2 commit 7f31c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a2c6181c4a1922021b4d7df373bba612c3e5f04
refs/heads/master: 9a18dd15e2ec934d8265009d3882955dcc059a49
6 changes: 2 additions & 4 deletions trunk/drivers/net/ethernet/neterion/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#include <linux/slab.h>
#include <linux/prefetch.h>
#include <net/tcp.h>
#include <net/checksum.h>

#include <asm/div64.h>
#include <asm/irq.h>
Expand Down Expand Up @@ -8337,16 +8338,13 @@ static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro)
{
struct iphdr *ip = lro->iph;
struct tcphdr *tcp = lro->tcph;
__sum16 nchk;
struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;

DBG_PRINT(INFO_DBG, "%s: Been here...\n", __func__);

/* Update L3 header */
csum_replace2(&ip->check, ip->tot_len, htons(lro->total_len));
ip->tot_len = htons(lro->total_len);
ip->check = 0;
nchk = ip_fast_csum((u8 *)lro->iph, ip->ihl);
ip->check = nchk;

/* Update L4 header */
tcp->ack_seq = lro->tcp_ack;
Expand Down

0 comments on commit 7f31c82

Please sign in to comment.