SHA256
1
0
forked from pool/openvswitch
openvswitch/openvswitch-1.1.0-stp-fwd-delay.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

diff -uNr old-openvswitch-1.1.0//datapath/brcompat.c openvswitch-1.1.0/datapath/brcompat.c
--- old-openvswitch-1.1.0//datapath/brcompat.c 2011-04-07 17:41:17.000000000 +0200
+++ openvswitch-1.1.0/datapath/brcompat.c 2011-05-17 13:34:26.015407719 +0200
@@ -308,6 +308,19 @@
return -ENOMEM;
}
+static int brc_set_bridge_forward_delay(struct net_device *dev,
+ unsigned long delay)
+{
+ printk("attempting to set bridge forward delay %u\n", delay);
+ return 0;
+}
+
+static int brc_stp_set_enabled(struct net_device *dev, unsigned long state)
+{
+ printk("attempting to set bridge STP to %u\n", state);
+ return 0;
+}
+
/* Legacy ioctl's through SIOCDEVPRIVATE. Called with rtnl_lock. */
static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{
@@ -331,6 +344,12 @@
case BRCTL_GET_FDB_ENTRIES:
return brc_get_fdb_entries(dev, (void __user *)args[1],
args[2], args[3]);
+ case BRCTL_SET_BRIDGE_FORWARD_DELAY:
+ return brc_set_bridge_forward_delay(dev, args[1]);
+
+ case BRCTL_SET_BRIDGE_STP_STATE:
+ return brc_stp_set_enabled(dev, args[1]);
+
}
return -EOPNOTSUPP;