]> 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)
commit149ea30fdd5c28b89a3bfdecfc75cdab1deddb14
treea613ea893a98357a1e46153b53f5dd6ef2e1a0fb
parent4c85e57575fb9e6405d02d55aef8025c60abb824
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 f285f37cb1e6 ("devlink: append split port number to the port name")

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

Fixes: 126285651b7 ("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