Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge()

The comment is correct, but the code ends up moving the bits four
places too far, into the VTUOp field.

Fixes: 11ea809f1a74 (net: dsa: mv88e6xxx: support 256 databases)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rasmus Villemoes and committed by
David S. Miller
48620e34 d470e720

+1 -1
+1 -1
drivers/net/dsa/mv88e6xxx/global1_vtu.c
··· 415 415 * VTU DBNum[7:4] are located in VTU Operation 11:8 416 416 */ 417 417 op |= entry->fid & 0x000f; 418 - op |= (entry->fid & 0x00f0) << 8; 418 + op |= (entry->fid & 0x00f0) << 4; 419 419 } 420 420 421 421 return mv88e6xxx_g1_vtu_op(chip, op);