OSDN Git Service

bonding: add extra field for bond_opt_value
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 21 Feb 2022 05:54:55 +0000 (13:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Feb 2022 12:13:45 +0000 (12:13 +0000)
commit841e95641e4cb695586b036f330d6d272fcd7173
treeffaf8dd6d7c8cc2bff7bb494649c0fbee9a6e868
parent1fcd5d448c59ca2703504806eb8131ce8e411a70
bonding: add extra field for bond_opt_value

Adding an extra storage field for bond_opt_value so we can set large
bytes of data for bonding options in future, e.g. IPv6 address.

Define a new call bond_opt_initextra(). Also change the checking order of
__bond_opt_init() and check values first.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/bond_options.h