/* Show and set the bonding mode. The bond interface must be down to change the mode.  */
static ssize_t bonding_show_mode(struct device *d, struct device_attribute *attr, char *buf)
/* Show and set the bonding mode. The bond interface must be down to change the mode.  */
static ssize_t bonding_show_mode(struct device *d, struct device_attribute *attr, char *buf)
{
	struct bonding *bond = to_bond(d);
	return sprintf(buf, "%s %d\n",
			bond_mode_tbl[bond->params.mode].modename,
			bond->params.mode);
}