We don't support configuring STP through sysfs. However, Xen tries to
disable STP by writing a zero value to some fields, which is our
default. This change suppresses the warning that we don't support
setting STP sysfs values in those circumstances.
(*set)(br, val);
spin_unlock_bh(&br->lock);
#else
- printk("%s: xxx writing dp parms not supported yet!\n",
- dp->netdev->name);
+ /* xxx We use a default value of 0 for all fields. If the caller is
+ * xxx attempting to set the value to our default, just silently
+ * xxx ignore the request.
+ */
+ if (val != 0) {
+ printk("%s: xxx writing dp parms not supported yet!\n",
+ dp->netdev->name);
+ }
#endif
return len;
}