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)
commitd917c35a451e4ebba5c12a51c92cbddce958c91e
treed09eb61709d592d9da491d94a55bf9959b16b073
parentc2ae34a7deaff463ecafb7db627b77faaca8e159
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