Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e672975 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "tpacket: Notify userspace about packets with CHECKSUM_UNNECESSARY"

parents 5d0652d9 0458aa0a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ struct tpacket_auxdata {
#define TP_STATUS_VLAN_VALID		(1 << 4) /* auxdata has valid tp_vlan_tci */
#define TP_STATUS_BLK_TMO		(1 << 5)
#define TP_STATUS_VLAN_TPID_VALID	(1 << 6) /* auxdata has valid tp_vlan_tpid */
#define TP_STATUS_CSUM_UNNECESSARY	(1 << 7)

/* Tx ring - header status */
#define TP_STATUS_AVAILABLE	      0
+3 −0
Original line number Diff line number Diff line
@@ -1888,6 +1888,9 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,
	if (skb->ip_summed == CHECKSUM_PARTIAL)
		status |= TP_STATUS_CSUMNOTREADY;

	if (skb->ip_summed == CHECKSUM_UNNECESSARY)
		status |= TP_STATUS_CSUM_UNNECESSARY;

	snaplen = skb->len;

	res = run_filter(skb, sk, snaplen);