projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lantiq: fix unaligned access in xrx200_poll_rx()
[openwrt/openwrt.git]
/
target
/
linux
/
lantiq
/
patches-4.4
/
0025-NET-MIPS-lantiq-adds-xrx200-net.patch
diff --git
a/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
b/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
index 4e60f3030288893bea3153bceb233a12c45a3961..acaadba984a4c15bdc51ec92bbc5d4dd1c806add 100644
(file)
--- a/
target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
+++ b/
target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
@@
-1190,8
+1190,8
@@
Subject: [PATCH 25/36] NET: MIPS: lantiq: adds xrx200-net
+ if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) == LTQ_DMA_C) {
+#ifdef SW_ROUTING
+ struct sk_buff *skb = ch->skb[ch->dma.desc];
+ if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) == LTQ_DMA_C) {
+#ifdef SW_ROUTING
+ struct sk_buff *skb = ch->skb[ch->dma.desc];
-+ u
32 *special_tag = (u32
*)skb->data;
-+ int port = (special_tag[
1
] >> SPPID_SHIFT) & SPPID_MASK;
++ u
8 *special_tag = (u8
*)skb->data;
++ int port = (special_tag[
7
] >> SPPID_SHIFT) & SPPID_MASK;
+ xrx200_hw_receive(ch, priv->hw->port_map[port]);
+#else
+ xrx200_hw_receive(ch, 0);
+ xrx200_hw_receive(ch, priv->hw->port_map[port]);
+#else
+ xrx200_hw_receive(ch, 0);