Skip to content

Commit

Permalink
net: ethtool: Add destination MAC address to flow steering API
Browse files Browse the repository at this point in the history
Add ability to specify destination MAC address for L3/L4 flow spec
in order to be able to specify action for different VM's under vSwitch
configuration. This change is transparent to older userspace.

Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yan Burman authored and David S. Miller committed Dec 12, 2012
1 parent cfd5675 commit d4676ea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/uapi/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,15 @@ union ethtool_flow_union {
struct ethtool_ah_espip4_spec esp_ip4_spec;
struct ethtool_usrip4_spec usr_ip4_spec;
struct ethhdr ether_spec;
__u8 hdata[60];
__u8 hdata[52];
};

struct ethtool_flow_ext {
__be16 vlan_etype;
__be16 vlan_tci;
__be32 data[2];
__u8 padding[2];
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
__be16 vlan_etype;
__be16 vlan_tci;
__be32 data[2];
};

/**
Expand Down Expand Up @@ -1027,6 +1029,7 @@ enum ethtool_sfeatures_retval_bits {
#define ETHER_FLOW 0x12 /* spec only (ether_spec) */
/* Flag to enable additional fields in struct ethtool_rx_flow_spec */
#define FLOW_EXT 0x80000000
#define FLOW_MAC_EXT 0x40000000

/* L3-L4 network traffic flow hash options */
#define RXH_L2DA (1 << 1)
Expand Down

0 comments on commit d4676ea

Please sign in to comment.