SHA256
1
0
forked from pool/openvswitch
openvswitch/openvswitch-1.1.0-stp-fwd-delay.patch
Lars Vogdt dbc1de3515 Accepting request 70540 from home:anubisg1:branches:network
spec file clean up, added the proper dependencies adding python functions and upstream version 1.1.0 (previous was 1.1.0 pre15), python-pyside is optional, re-enabled kmp packages

OBS-URL: https://build.opensuse.org/request/show/70540
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=3
2011-05-20 19:19:18 +00:00

37 lines
1.1 KiB
Diff

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;