Skip to content

Commit 90028b0

Browse files
Prasad Kannegantidavem330
authored andcommitted
liquidio VF: fix incorrect struct being used
The VF driver is using the wrong struct when sending commands to the NIC firmware, sometimes causing adverse effects in the firmware. The right struct is the one that the PF is using, so make the VF use that as well. Signed-off-by: Prasad Kanneganti <prasad.kanneganti@cavium.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: Derek Chickles <derek.chickles@cavium.com> Signed-off-by: Satanand Burla <satananda.burla@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c1878f7 commit 90028b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/cavium/liquidio/octeon_nic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ octeon_alloc_soft_command_resp(struct octeon_device *oct,
4949
/* Add in the response related fields. Opcode and Param are already
5050
* there.
5151
*/
52-
if (OCTEON_CN23XX_PF(oct)) {
52+
if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct)) {
5353
ih3 = (struct octeon_instr_ih3 *)&sc->cmd.cmd3.ih3;
5454
rdp = (struct octeon_instr_rdp *)&sc->cmd.cmd3.rdp;
5555
irh = (struct octeon_instr_irh *)&sc->cmd.cmd3.irh;
@@ -70,7 +70,7 @@ octeon_alloc_soft_command_resp(struct octeon_device *oct,
7070

7171
*sc->status_word = COMPLETION_WORD_INIT;
7272

73-
if (OCTEON_CN23XX_PF(oct))
73+
if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct))
7474
sc->cmd.cmd3.rptr = sc->dmarptr;
7575
else
7676
sc->cmd.cmd2.rptr = sc->dmarptr;

0 commit comments

Comments
 (0)