]> 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)
commit5310310801246d905a8d660b7684b7d52ac77513
treea613ea893a98357a1e46153b53f5dd6ef2e1a0fb
parent3934a5bd9cf3d2d515a64bf311dc8d5ca144a57b
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 c0827671994a ("devlink: append split port number to the port name")

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

Fixes: 9dd514bacd5 ("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