David Woodhouse <[email protected]> :
[...]
> diff --git a/drivers/net/ethernet/realtek/8139cp.c
> b/drivers/net/ethernet/realtek/8139cp.c
> index 058f835..07621b5 100644
> --- a/drivers/net/ethernet/realtek/8139cp.c
> +++ b/drivers/net/ethernet/realtek/8139cp.c
[...]
> @@ -865,20 +864,20 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb,
> txd->addr = cpu_to_le64(first_mapping);
> wmb();
>
> - if (skb->ip_summed == CHECKSUM_PARTIAL) {
> + ctrl = first_eor | first_len | FirstFrag | DescOwn;
> + if (mss)
> + ctrl |= LargeSend |
> + ((mss & MSSMask) << MSSShift);
ctrl |= LargeSend | ((mss & MSSMask) << MSSShift);
> + else if (skb->ip_summed == CHECKSUM_PARTIAL) {
> if (ip->protocol == IPPROTO_TCP)
> - txd->opts1 = cpu_to_le32(first_eor | first_len |
> - FirstFrag | DescOwn |
> - IPCS | TCPCS);
> + ctrl |= IPCS | TCPCS;
> else if (ip->protocol == IPPROTO_UDP)
> - txd->opts1 = cpu_to_le32(first_eor | first_len |
> - FirstFrag | DescOwn |
> - IPCS | UDPCS);
> + ctrl |= IPCS | UDPCS;
> else
> BUG();
Can you pile a patch to replace BUG with WARN_ON_ONCE(1) ?
--
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html