]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Fix phys_port_name of virtual port and merge error
authorParav Pandit <parav@nvidia.com>
Fri, 23 Jul 2021 14:56:00 +0000 (17:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 09:44:54 +0000 (10:44 +0100)
commitf0591e4efcaf3d28640c99dd105aacfb3a809d1c
treea613ea893a98357a1e46153b53f5dd6ef2e1a0fb
parent102dda6ca3fee8e7c6d89275729a2a04b6d0df83
devlink: Fix phys_port_name of virtual port and merge error

Merge commit cited in fixes tag was incorrect. Due to it phys_port_name
of the virtual port resulted in incorrect name.

Also the phys_port_name of the physical port was written twice due to
the merge error.

Fix it by removing the old code and inserting back the misplaced code.

Related commits of interest in net and net-next branches that resulted
in merge conflict are:

in net-next branch:
commit c574f8f7c8c5 ("devlink: append split port number to the port name")

in net branch:
commit 8f91109f81cc ("devlink: Correct VIRTUAL port to not have phys_port attributes")

Fixes: 3d033a84bff ("Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reported-by: Niklas Schnelle <schnelle@linux.ibm.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c