netdev
[Top] [All Lists]

Re: dev_add_pack and hardware checksumming

To: Petr Vandrovec <vandrove@xxxxxxxxxx>
Subject: Re: dev_add_pack and hardware checksumming
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Sun, 17 Aug 2003 22:38:51 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20030818033711.GA21360@vana.vc.cvut.cz>
References: <20030818033711.GA21360@vana.vc.cvut.cz>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 18 Aug 2003 05:37:11 +0200
Petr Vandrovec <vandrove@xxxxxxxxxx> wrote:

>   For me it would be best if dev_queue_xmit_nit could just leave
> skb->h.raw alone,

The AF_PACKET layer depends upon skb->h.raw being set a certain
way.  Have a look at the dev_add_pack() registered hooks that
net/packet/af_packet.c uses.

> Other choice is doing checksumming in dev_queue_xmit_nit itself,
> before passing skb down to the registered packet handlers.

This is not an option either.  We're specifically not going to
undo checksum offloading just because tcpdump or some other
kind of tap is installed.

<Prev in Thread] Current Thread [Next in Thread>