diff options
author | Yan Burman <yanb@mellanox.com> | 2012-12-11 14:03:56 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-01-22 20:30:01 +0000 |
commit | b29aa90ebcf9627e960b07c3f58eaceffdf61dd3 (patch) | |
tree | 9dd03b3aa1061f4c335cb0c6731886c2783a34fa /ethtool.c | |
parent | 3cd13d901e31be9fffe71a9eacd6ad1703e2bc95 (diff) | |
download | ethtool-b29aa90ebcf9627e960b07c3f58eaceffdf61dd3.tar.gz |
Added dst-mac parameter for L3/L4 flow spec rules. This is usefull in vSwitch configurations.
Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r-- | ethtool.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3231,6 +3231,10 @@ static int flow_spec_to_ntuple(struct ethtool_rx_flow_spec *fsp, if (fsp->location != RX_CLS_LOC_ANY) return -1; + /* destination MAC address in L3/L4 rules is not supported by ntuple */ + if (fsp->flow_type & FLOW_MAC_EXT) + return -1; + /* verify ring cookie can transfer to action */ if (fsp->ring_cookie > INT_MAX && fsp->ring_cookie < (u64)(-2)) return -1; @@ -3814,6 +3818,7 @@ static const struct option { " [ vlan-etype %x [m %x] ]\n" " [ vlan %x [m %x] ]\n" " [ user-def %x [m %x] ]\n" + " [ dst-mac %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]\n" " [ action %d ]\n" " [ loc %d]] |\n" " delete %d\n" }, |