]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ehea: Remove unused tcp_end field in send WQ
authorAnton Blanchard <anton@samba.org>
Fri, 14 Oct 2011 05:31:12 +0000 (05:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2011 23:00:55 +0000 (19:00 -0400)
The tcp_end field is not actually used by the hardware, so there
is no need to set it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c
drivers/net/ethernet/ibm/ehea/ehea_qmr.h

index bfd08b2a9910f183131eff08e21419a536007390..adb462d0b8d38fe11eaadfd2a8b1deedb05337dd 100644 (file)
@@ -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:
@@ -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;
        }
 }
index fddff8ec8cfd8e4e8a47e2147db42378ba2fec5b..337a47ecf4aac5dc88778ddb77bef2e68f2e877e 100644 (file)
@@ -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;