]> git.baikalelectronics.ru Git - kernel.git/commit
net: add an helper to copy xps maps to the new dev_maps
authorAntoine Tenart <atenart@kernel.org>
Thu, 18 Mar 2021 18:37:47 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:56:22 +0000 (14:56 -0700)
commit6af2e5a8eaade2fb4f6fef9dcde62e4c2a1a8627
treee042ec46f247f1e8fcb81835994b64bb6c642611
parent9a21738086993fc545074e09d20230df263be8d9
net: add an helper to copy xps maps to the new dev_maps

This patch adds an helper, xps_copy_dev_maps, to copy maps from dev_maps
to new_dev_maps at a given index. The logic should be the same, with an
improved code readability and maintenance.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c