]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Allow partial updates of IFLA_FLAGS
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 15 Jun 2021 23:27:07 +0000 (18:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:16:22 +0000 (12:16 -0700)
commit43198cbbb3530a7db698e378cfbb7decc335d69a
treed09eb61709d592d9da491d94a55bf9959b16b073
parentf0e7b4ddabe6dee7f9d12cb41a0073b018e1dc40
net: qualcomm: rmnet: Allow partial updates of IFLA_FLAGS

The idiomatic way to handle the changelink flags/mask pair seems to be
allow partial updates of the driver's link flags. In contrast the rmnet
driver masks the incoming flags and then use that as the new flags.

Change the rmnet driver to follow the common scheme, before the
introduction of IFLA_RMNET_FLAGS handling in iproute2 et al.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c