[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[deliverable/linux.git] / drivers / net / netxen / netxen_nic_hw.c
index b2f5032937e3376bcacb0c796e3ab3d96a355339..28d68c3550efe0722a512492fd944cc4bd260fdb 100644 (file)
@@ -378,9 +378,9 @@ void netxen_tso_check(struct netxen_adapter *adapter,
                                          skb->h.th->doff * 4);
                netxen_set_cmd_desc_opcode(desc, TX_TCP_LSO);
        } else if (skb->ip_summed == CHECKSUM_PARTIAL) {
-               if (skb->nh.iph->protocol == IPPROTO_TCP) {
+               if (ip_hdr(skb)->protocol == IPPROTO_TCP) {
                        netxen_set_cmd_desc_opcode(desc, TX_TCP_PKT);
-               } else if (skb->nh.iph->protocol == IPPROTO_UDP) {
+               } else if (ip_hdr(skb)->protocol == IPPROTO_UDP) {
                        netxen_set_cmd_desc_opcode(desc, TX_UDP_PKT);
                } else {
                        return;
This page took 0.033065 seconds and 5 git commands to generate.