mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:25:09 +07:00
08d02364b1
When injecting frames in the Ocelot switch driver an injection header
(IFH) should be used to configure various parameters related to a given
frame, such as the port onto which the frame should be departed or its
vlan id. Other parameters in the switch configuration can led to an
injected frame being sent without an IFH but this led to various issues
as the per-frame parameters are then not used. This is especially true
when using multiple ports for injection.
The IFH was injected with the wrong endianness which led to the switch
not taking it into account as the IFH_INJ_BYPASS bit was then unset.
(The bit tells the switch to use the IFH over its internal
configuration). This patch fixes it.
In addition to the endianness fix, the IFH is also fixed. As it was
(unwillingly) unused, some of its fields were not configured the right
way.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ocelot_ana.h | ||
ocelot_board.c | ||
ocelot_dev_gmii.h | ||
ocelot_dev.h | ||
ocelot_hsio.h | ||
ocelot_io.c | ||
ocelot_qs.h | ||
ocelot_qsys.h | ||
ocelot_regs.c | ||
ocelot_rew.h | ||
ocelot_sys.h | ||
ocelot.c | ||
ocelot.h |