]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxgb4: use port number to set mac addr
authorAnumula Murali Mohan Reddy <anumula@chelsio.com>
Fri, 6 Dec 2024 06:20:14 +0000 (11:50 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Dec 2024 00:12:43 +0000 (16:12 -0800)
commit356983f569c1f5991661fc0050aa263792f50616
tree1dc89c9dc73d4c878babef50ef7b9bfe002eef2c
parentb4906787d49b9bfaa277ea919feffbc7cfaee4eb
cxgb4: use port number to set mac addr

t4_set_vf_mac_acl() uses pf to set mac addr, but t4vf_get_vf_mac_acl()
uses port number to get mac addr, this leads to error when an attempt
to set MAC address on VF's of PF2 and PF3.
This patch fixes the issue by using port number to set mac address.

Fixes: e0cdac65ba26 ("cxgb4vf: configure ports accessible by the VF")
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241206062014.49414-1-anumula@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c