aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-02-11 10:39:30 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-02-24 04:37:35 -0500
commit3bdc0eba0b8b47797f4a76e377dd8360f317450f (patch)
treeda6bd907f599402bc8db0a2484997fd4d3e06f7b /include/linux/skbuff.h
parent0184039a4b6727d6efd545919c773ef141090ae7 (diff)
net: Add framework to allow sending packets with customized CRC.
This is useful for testing RX handling of frames with bad CRCs. Requires driver support to actually put the packet on the wire properly. Signed-off-by: Ben Greear <greearb@candelatech.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index c11a44ea1bf4..06a4c0fd7bef 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -361,6 +361,7 @@ typedef unsigned char *sk_buff_data_t;
361 * ports. 361 * ports.
362 * @wifi_acked_valid: wifi_acked was set 362 * @wifi_acked_valid: wifi_acked was set
363 * @wifi_acked: whether frame was acked on wifi or not 363 * @wifi_acked: whether frame was acked on wifi or not
364 * @no_fcs: Request NIC to treat last 4 bytes as Ethernet FCS
364 * @dma_cookie: a cookie to one of several possible DMA operations 365 * @dma_cookie: a cookie to one of several possible DMA operations
365 * done by skb DMA functions 366 * done by skb DMA functions
366 * @secmark: security marking 367 * @secmark: security marking
@@ -459,7 +460,8 @@ struct sk_buff {
459 __u8 l4_rxhash:1; 460 __u8 l4_rxhash:1;
460 __u8 wifi_acked_valid:1; 461 __u8 wifi_acked_valid:1;
461 __u8 wifi_acked:1; 462 __u8 wifi_acked:1;
462 /* 10/12 bit hole (depending on ndisc_nodetype presence) */ 463 __u8 no_fcs:1;
464 /* 9/11 bit hole (depending on ndisc_nodetype presence) */
463 kmemcheck_bitfield_end(flags2); 465 kmemcheck_bitfield_end(flags2);
464 466
465#ifdef CONFIG_NET_DMA 467#ifdef CONFIG_NET_DMA