From b29aa90ebcf9627e960b07c3f58eaceffdf61dd3 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Tue, 11 Dec 2012 14:03:56 +0200 Subject: Added dst-mac parameter for L3/L4 flow spec rules. This is usefull in vSwitch configurations. Signed-off-by: Yan Burman Signed-off-by: Amir Vadai Signed-off-by: Ben Hutchings --- ethtool.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ethtool.c') diff --git a/ethtool.c b/ethtool.c index 345c21c..55bc082 100644 --- a/ethtool.c +++ b/ethtool.c @@ -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" }, -- cgit v1.2.1