From: Rusty Russell <rusty@rustcorp.com.au>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: [PATCH 0/9][RFC] KVM virtio_net performance
Date: Mon, 11 Aug 2008 17:44:27 +1000 [thread overview]
Message-ID: <200808111744.27915.rusty@rustcorp.com.au> (raw)
In-Reply-To: <4888EC61.8050208@codemonkey.ws>
On Friday 25 July 2008 06:56:01 you wrote:
> I'm still seeing the same problem I saw with my patch series. Namely,
> dhclient fails to get a DHCP address.
This is, from one point of view, a dhclient bug. It opens a packet socket,
and we'd tell it that the checksum is incomplete via auxdata, but it doesn't
have auxdata.
On the other hand, perhaps we should copy the packet and checksum it in this
case? Not many devices input packets with partial csums, so dhclient doesn't
normally hit this. Xen might though?
ie, in net/packet/af_packet.c's packet_recvmsg():
if (pkt_sk(sk)->auxdata) {
struct tpacket_auxdata aux;
aux.tp_status = TP_STATUS_USER;
if (skb->ip_summed == CHECKSUM_PARTIAL)
aux.tp_status |= TP_STATUS_CSUMNOTREADY;
aux.tp_len = PACKET_SKB_CB(skb)->origlen;
aux.tp_snaplen = skb->len;
aux.tp_mac = 0;
aux.tp_net = skb_network_offset(skb);
aux.tp_vlan_tci = skb->vlan_tci;
put_cmsg(msg, SOL_PACKET, PACKET_AUXDATA, sizeof(aux), &aux);
}
add an "else if (skb->ip_summed == CHECKSUM_PARTIAL)" case...
Rusty.
next parent reply other threads:[~2008-08-11 7:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1216899979-32532-1-git-send-email-markmc@redhat.com>
[not found] ` <4888EC61.8050208@codemonkey.ws>
2008-08-11 7:44 ` Rusty Russell [this message]
2008-08-11 9:51 ` [PATCH 0/9][RFC] KVM virtio_net performance Herbert Xu
2008-08-11 13:50 ` csum offload and af_packet Rusty Russell
2008-08-12 0:32 ` Herbert Xu
2008-08-12 0:51 ` David Miller
2008-08-12 0:58 ` Herbert Xu
2008-08-12 16:17 ` Ingo Oeser
2008-08-12 23:37 ` Herbert Xu
2008-08-13 0:55 ` David Miller
2008-08-13 1:09 ` Herbert Xu
2008-08-13 1:17 ` David Miller
2008-08-13 1:21 ` Herbert Xu
2008-08-13 1:25 ` David Miller
2008-08-13 1:37 ` Herbert Xu
2008-08-13 11:26 ` Patrick McHardy
2008-08-17 23:08 ` David Miller
2008-08-18 1:10 ` Herbert Xu
2008-08-18 1:12 ` David Miller
[not found] ` <48A8CCBF.3020408@trash.net>
2008-08-18 1:15 ` David Miller
2008-08-18 2:12 ` David Miller
2008-08-18 11:17 ` Patrick McHardy
2008-08-12 2:27 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808111744.27915.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=anthony@codemonkey.ws \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).