History

virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit

This patch part reverts fd2a0437dc33 and e858fae2b0b8 which introduced a subtle change in how the virtio_net flags are derived from the SKBs ip_summed field. With the above commits, the flags are set to VIRTIO_NET_HDR_F_DATA_VALID when ip_summed == CHECKSUM_UNNECESSARY, thus treating it differently to ip_summed == CHECKSUM_NONE, which should be the same. Further, the virtio spec 1.0 / CS04 explicitly says that VIRTIO_NET_HDR_F_DATA_VALID must not be set by the driver.

Rolf Neugebauer committed 9 years ago

Commit 501db511 parent 4b19a9e1 file · +0 −2Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/virtio_net.h+0−2
@@ -91,8 +91,6 @@ static inline int virtio_net_hdr_from_skb(const struct sk_buff *skb, · 90 unmodified lines
9191 skb_checksum_start_offset(skb));
9292 hdr->csum_offset = __cpu_to_virtio16(little_endian,
9393 skb->csum_offset);
94− } else if (skb->ip_summed == CHECKSUM_UNNECESSARY) {
95− hdr->flags = VIRTIO_NET_HDR_F_DATA_VALID;
9694 } /* else everything is zero */
9795
9896 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t