Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68697
b: refs/heads/master
c: 9df7c98
h: refs/heads/master
i:
  68695: bccb0e9
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent 04d5eae commit 36ce7b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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: d9a19d200f00533b56fb109b6c538b6ea2961ab2
refs/heads/master: 9df7c98a0f7e0b7f4b547761ab64f39a13f20355
6 changes: 3 additions & 3 deletions trunk/include/linux/inet_lro.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ struct net_lro_desc {
struct tcphdr *tcph;
struct vlan_group *vgrp;
__wsum data_csum;
u32 tcp_rcv_tsecr;
u32 tcp_rcv_tsval;
__be32 tcp_rcv_tsecr;
__be32 tcp_rcv_tsval;
u32 tcp_ack;
u32 tcp_next_seq;
u32 skb_tot_frags_len;
u16 ip_tot_len;
u16 tcp_saw_tstamp; /* timestamps enabled */
u16 tcp_window;
__be16 tcp_window;
u16 vlan_tag;
int pkt_aggr_cnt; /* counts aggregated packets */
int vlan_packet;
Expand Down
14 changes: 7 additions & 7 deletions trunk/net/ipv4/inet_lro.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int lro_tcp_ip_check(struct iphdr *iph, struct tcphdr *tcph,

/* check tcp options (only timestamp allowed) */
if (tcph->doff == TCPH_LEN_W_TIMESTAMP) {
u32 *topt = (u32 *)(tcph + 1);
__be32 *topt = (__be32 *)(tcph + 1);

if (*topt != htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16)
| (TCPOPT_TIMESTAMP << 8)
Expand All @@ -103,14 +103,14 @@ static void lro_update_tcp_ip_header(struct net_lro_desc *lro_desc)
{
struct iphdr *iph = lro_desc->iph;
struct tcphdr *tcph = lro_desc->tcph;
u32 *p;
__be32 *p;
__wsum tcp_hdr_csum;

tcph->ack_seq = lro_desc->tcp_ack;
tcph->window = lro_desc->tcp_window;

if (lro_desc->tcp_saw_tstamp) {
p = (u32 *)(tcph + 1);
p = (__be32 *)(tcph + 1);
*(p+2) = lro_desc->tcp_rcv_tsecr;
}

Expand Down Expand Up @@ -150,7 +150,7 @@ static void lro_init_desc(struct net_lro_desc *lro_desc, struct sk_buff *skb,
u16 vlan_tag, struct vlan_group *vgrp)
{
int nr_frags;
u32 *ptr;
__be32 *ptr;
u32 tcp_data_len = TCP_PAYLOAD_LENGTH(iph, tcph);

nr_frags = skb_shinfo(skb)->nr_frags;
Expand All @@ -166,7 +166,7 @@ static void lro_init_desc(struct net_lro_desc *lro_desc, struct sk_buff *skb,
lro_desc->ip_tot_len = ntohs(iph->tot_len);

if (tcph->doff == 8) {
ptr = (u32 *)(tcph+1);
ptr = (__be32 *)(tcph+1);
lro_desc->tcp_saw_tstamp = 1;
lro_desc->tcp_rcv_tsval = *(ptr+1);
lro_desc->tcp_rcv_tsecr = *(ptr+2);
Expand All @@ -190,7 +190,7 @@ static void lro_add_common(struct net_lro_desc *lro_desc, struct iphdr *iph,
struct tcphdr *tcph, int tcp_data_len)
{
struct sk_buff *parent = lro_desc->parent;
u32 *topt;
__be32 *topt;

lro_desc->pkt_aggr_cnt++;
lro_desc->ip_tot_len += tcp_data_len;
Expand All @@ -200,7 +200,7 @@ static void lro_add_common(struct net_lro_desc *lro_desc, struct iphdr *iph,

/* don't update tcp_rcv_tsval, would not work with PAWS */
if (lro_desc->tcp_saw_tstamp) {
topt = (u32 *) (tcph + 1);
topt = (__be32 *) (tcph + 1);
lro_desc->tcp_rcv_tsecr = *(topt + 2);
}

Expand Down

0 comments on commit 36ce7b9

Please sign in to comment.