summaryrefslogtreecommitdiff
path: root/Documentation/networking
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2022-06-21 10:49:18 +0300
committerDavid S. Miller <davem@davemloft.net>2022-06-24 13:27:59 +0300
commitf2b3b28ce5237a4995a17d6f6aac9e05243d7a0b (patch)
treec5cc878d92caa3d6332d86d539dc0e61932c78e6 /Documentation/networking
parent7747de17f7507f26a21b17097862f0da409be111 (diff)
downloadlinux-f2b3b28ce5237a4995a17d6f6aac9e05243d7a0b.tar.xz
bonding: add slave_dev field for bond_opt_value
Currently, bond_opt_value are mostly used for bonding option settings. If we want to set a value for slave, we need to re-alloc a string to store both slave name and vlaue, like bond_option_queue_id_set() does, which is complex and dumb. As Jon suggested, let's add a union field slave_dev for bond_opt_value, which will be benefit for future slave option setting. In function __bond_opt_init(), we will always check the extra field and set it if it's not NULL. Suggested-by: Jonathan Toppins <jtoppins@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Jonathan Toppins <jtoppins@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions