aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 16:20:02 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 16:20:02 -0500
commit8d9ea7172edd2e52da26b9485b4c97969a0d2648 (patch)
treef3359dbcecca68963961a3840b9b6221554c7642 /include
parentf6e858a00af788bab0fd4c0b7f5cd788000edc18 (diff)
parenteca2a43bb0d2c6ebd528be6acb30a88435abe307 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: "A pile of fixes in response to yesterday's big merge. The SCTP HMAC thing hasn't been addressed yet, I'll take care of that myself if Neil and Vlad don't show signs of life by tomorrow. 1) Use after free of SKB in tuntap code. Fix by Eric Dumazet, reported by Dave Jones. 2) NFC LLCP code emits annoying kernel log message, triggerable by the user. From Dave Jones. 3) Fix several endianness bugs noticed by sparse in the bridging code, from Stephen Hemminger. 4) Ipv6 NDISC code doesn't take padding into account properly, fix from YOSHIFUJI Hideaki. 5) Add missing docs to ethtool_flow_ext struct, from Yan Burman." * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: bridge: fix icmpv6 endian bug and other sparse warnings net: ethool: Document struct ethtool_flow_ext ndisc: Fix padding error in link-layer address option. tuntap: dont use skb after netif_rx_ni(skb) nfc: remove noisy message from llcp_sock_sendmsg
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/ethtool.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index be8c41e2dc15..0c9b44871df0 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -503,9 +503,20 @@ union ethtool_flow_union {
503 __u8 hdata[52]; 503 __u8 hdata[52];
504}; 504};
505 505
506/**
507 * struct ethtool_flow_ext - additional RX flow fields
508 * @h_dest: destination MAC address
509 * @vlan_etype: VLAN EtherType
510 * @vlan_tci: VLAN tag control information
511 * @data: user defined data
512 *
513 * Note, @vlan_etype, @vlan_tci, and @data are only valid if %FLOW_EXT
514 * is set in &struct ethtool_rx_flow_spec @flow_type.
515 * @h_dest is valid if %FLOW_MAC_EXT is set.
516 */
506struct ethtool_flow_ext { 517struct ethtool_flow_ext {
507 __u8 padding[2]; 518 __u8 padding[2];
508 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ 519 unsigned char h_dest[ETH_ALEN];
509 __be16 vlan_etype; 520 __be16 vlan_etype;
510 __be16 vlan_tci; 521 __be16 vlan_tci;
511 __be32 data[2]; 522 __be32 data[2];
@@ -519,7 +530,8 @@ struct ethtool_flow_ext {
519 * @m_u: Masks for flow field bits to be matched 530 * @m_u: Masks for flow field bits to be matched
520 * @m_ext: Masks for additional field bits to be matched 531 * @m_ext: Masks for additional field bits to be matched
521 * Note, all additional fields must be ignored unless @flow_type 532 * Note, all additional fields must be ignored unless @flow_type
522 * includes the %FLOW_EXT flag. 533 * includes the %FLOW_EXT or %FLOW_MAC_EXT flag
534 * (see &struct ethtool_flow_ext description).
523 * @ring_cookie: RX ring/queue index to deliver to, or %RX_CLS_FLOW_DISC 535 * @ring_cookie: RX ring/queue index to deliver to, or %RX_CLS_FLOW_DISC
524 * if packets should be discarded 536 * if packets should be discarded
525 * @location: Location of rule in the table. Locations must be 537 * @location: Location of rule in the table. Locations must be