[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e023dd6437
commit
eddc9ec53b
@@ -40,7 +40,7 @@ qeth_tso_fill_header(struct qeth_card *card, struct sk_buff *skb)
|
||||
QETH_DBF_TEXT(trace, 5, "tsofhdr");
|
||||
|
||||
hdr = (struct qeth_hdr_tso *) skb->data;
|
||||
iph = skb->nh.iph;
|
||||
iph = ip_hdr(skb);
|
||||
tcph = skb->h.th;
|
||||
/*fix header to TSO values ...*/
|
||||
hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO;
|
||||
@@ -63,13 +63,9 @@ qeth_tso_fill_header(struct qeth_card *card, struct sk_buff *skb)
|
||||
static inline void
|
||||
qeth_tso_set_tcpip_header(struct qeth_card *card, struct sk_buff *skb)
|
||||
{
|
||||
struct iphdr *iph;
|
||||
struct ipv6hdr *ip6h;
|
||||
struct tcphdr *tcph;
|
||||
|
||||
iph = skb->nh.iph;
|
||||
ip6h = skb->nh.ipv6h;
|
||||
tcph = skb->h.th;
|
||||
struct iphdr *iph = ip_hdr(skb);
|
||||
struct ipv6hdr *ip6h = skb->nh.ipv6h;
|
||||
struct tcphdr *tcph = skb->h.th;
|
||||
|
||||
tcph->check = 0;
|
||||
if (skb->protocol == ETH_P_IPV6) {
|
||||
|
Reference in New Issue
Block a user