Skip to content

Commit

Permalink
ehea: Remove unused tcp_end field in send WQ
Browse files Browse the repository at this point in the history
The tcp_end field is not actually used by the hardware, so there
is no need to set it.

Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
antonblanchard authored and davem330 committed Oct 17, 2011
1 parent 3428414 commit e6f8aa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/ibm/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,6 @@ static void xmit_common(struct sk_buff *skb, struct ehea_swqe *swqe)

swqe->tcp_offset = swqe->ip_end + 1 +
offsetof(struct udphdr, check);
swqe->tcp_end = skb->len - 1;
break;

case IPPROTO_TCP:
Expand All @@ -2010,7 +2009,6 @@ static void xmit_common(struct sk_buff *skb, struct ehea_swqe *swqe)

swqe->tcp_offset = swqe->ip_end + 1 +
offsetof(struct tcphdr, check);
swqe->tcp_end = skb->len - 1;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ibm/ehea/ehea_qmr.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct ehea_swqe {
u8 immediate_data_length;
u8 tcp_offset;
u8 reserved2;
u16 tcp_end;
u16 reserved2b;
u8 wrap_tag;
u8 descriptors; /* number of valid descriptors in WQE */
u16 reserved3;
Expand Down

0 comments on commit e6f8aa9

Please sign in to comment.