/* Show and set the primary slave. The store function is much simpler than bonding_store_slaves function because it only needs to handle one interface name. The bond must be a mode that supports a primary for this be set.  */
static ssize_t bonding_show_primary(struct device *d, struct device_attribute *attr, char *buf)
/* Show and set the primary slave. The store function is much simpler than bonding_store_slaves function because it only needs to handle one interface name. The bond must be a mode that supports a primary for this be set.  */
static ssize_t bonding_show_primary(struct device *d, struct device_attribute *attr, char *buf)
{
	int count = 0;
	struct bonding *bond = to_bond(d);
	if (bond->primary_slave)
		count = sprintf(buf, "%s\n", bond->primary_slave->dev->name);
	return count;
}