aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2019-05-20 16:51:56 -0700
committerDavid S. Miller <davem@davemloft.net>2019-05-20 20:50:31 -0400
commit7036e621455f4e62781b69bb76c71fddcc8664bf (patch)
treeded117af12671b67d6c9ab02763d5782fd837b43 /drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
parentnetworking: : fix typos in code comments (diff)
downloadlinux-dev-7036e621455f4e62781b69bb76c71fddcc8664bf.tar.xz
linux-dev-7036e621455f4e62781b69bb76c71fddcc8664bf.zip
net: qrtr: Fix message type of outgoing packets
QRTR packets has a message type in the header, which is repeated in the control header. For control packets we therefor copy the type from beginning of the outgoing payload and use that as message type. For non-control messages an endianness fix introduced in v5.2-rc1 caused the type to be 0, rather than QRTR_TYPE_DATA, causing all messages to be dropped by the receiver. Fix this by converting and using qrtr_type, which will remain QRTR_TYPE_DATA for non-control messages. Fixes: 8f5e24514cbd ("net: qrtr: use protocol endiannes variable") Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c')
0 files changed, 0 insertions, 0 deletions