Antoni Segura Puimedon has uploaded a new change for review. Change subject: net_tc: add support for mirroring all (not just IPv4) traffic ......................................................................
net_tc: add support for mirroring all (not just IPv4) traffic Up until now the filter was only acting on packets with IPv4 headers because of the 'protocol ip' part of the tc filter. This makes the mirroring protocol agnostic. Change-Id: I9de381e67fae4cb79fe41dbd9d1b60b72eb84de4 Signed-off-by: Antoni S. Puimedon <[email protected]> --- M vdsm/network/tc.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/88/27388/1 diff --git a/vdsm/network/tc.py b/vdsm/network/tc.py index 35c4a92..de1837a 100644 --- a/vdsm/network/tc.py +++ b/vdsm/network/tc.py @@ -127,7 +127,7 @@ if filt.prio: command.extend(['prio', filt.prio]) command.extend(['handle', filt.handle]) - command.extend(['protocol', 'ip', 'u32', 'match', 'u8', '0', '0']) + command.extend(['protocol', 'all', 'u32', 'match', 'u8', '0', '0']) for a in filt.actions: command.extend(['action', 'mirred', 'egress', 'mirror', 'dev', a.target]) @@ -203,7 +203,7 @@ out = _process_request([EXT_TC, 'filter', 'show', 'dev', dev, 'parent', parent]) - HEADER = 'filter protocol ip pref ' + HEADER = 'filter protocol all pref ' prio = handle = None actions = [] prevline = ' ' -- To view, visit http://gerrit.ovirt.org/27388 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9de381e67fae4cb79fe41dbd9d1b60b72eb84de4 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Antoni Segura Puimedon <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
