aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-01-08 14:35:21 +0100
committerJo-Philipp Wich <jo@mein.io>2018-01-08 14:35:21 +0100
commit7bc25dfa63c084298edcc8bf5c5cdf258229d24a (patch)
tree1ad69f451028e3b39c5b0412f92cff19216b961a /target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch
parent541a1a7ff5ce9ef7a5660e483635ecd0892137dc (diff)
downloadupstream-7bc25dfa63c084298edcc8bf5c5cdf258229d24a.tar.gz
upstream-7bc25dfa63c084298edcc8bf5c5cdf258229d24a.tar.bz2
upstream-7bc25dfa63c084298edcc8bf5c5cdf258229d24a.zip
mvebu: fix mvneta build with Linux 4.4.110
Kernel 4.4.109 added pp->link, pp->duplex and pp->speed setters to mvneta_port_disable() which the mvneta patchset failed to patch out after rebasing, leading to the following build error: CC drivers/net/ethernet/marvell/mvneta.o drivers/net/ethernet/marvell/mvneta.c: In function 'mvneta_port_disable': drivers/net/ethernet/marvell/mvneta.c:1199:4: error: 'struct mvneta_port' has no member named 'link' pp->link = 0; ^ drivers/net/ethernet/marvell/mvneta.c:1200:4: error: 'struct mvneta_port' has no member named 'duplex' pp->duplex = -1; ^ drivers/net/ethernet/marvell/mvneta.c:1201:4: error: 'struct mvneta_port' has no member named 'speed' pp->speed = 0; ^ Fix the issue by rebasing 134-net-mvneta-convert-to-phylink.patch to remove these struct member accesses as well. Fixes: 7f5a040359 ("kernel: update kernel 4.4 to version 4.4.110") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch')
-rw-r--r--target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch b/target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch
index 5405eefc9f..7bd2593537 100644
--- a/target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch
+++ b/target/linux/mvebu/patches-4.4/147-net-mvneta-add-BQL-support.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
-@@ -1699,8 +1699,10 @@ static struct mvneta_tx_queue *mvneta_tx
+@@ -1695,8 +1695,10 @@ static struct mvneta_tx_queue *mvneta_tx
/* Free tx queue skbuffs */
static void mvneta_txq_bufs_free(struct mvneta_port *pp,
@@ -12,7 +12,7 @@
int i;
for (i = 0; i < num; i++) {
-@@ -1708,6 +1710,11 @@ static void mvneta_txq_bufs_free(struct
+@@ -1704,6 +1706,11 @@ static void mvneta_txq_bufs_free(struct
txq->txq_get_index;
struct sk_buff *skb = txq->tx_skb[txq->txq_get_index];
@@ -24,7 +24,7 @@
mvneta_txq_inc_get(txq);
if (!IS_TSO_HEADER(txq, tx_desc->buf_phys_addr))
-@@ -1718,6 +1725,8 @@ static void mvneta_txq_bufs_free(struct
+@@ -1714,6 +1721,8 @@ static void mvneta_txq_bufs_free(struct
continue;
dev_kfree_skb_any(skb);
}
@@ -33,7 +33,7 @@
}
/* Handle end of transmission */
-@@ -1731,7 +1740,7 @@ static void mvneta_txq_done(struct mvnet
+@@ -1727,7 +1736,7 @@ static void mvneta_txq_done(struct mvnet
if (!tx_done)
return;
@@ -42,7 +42,7 @@
txq->count -= tx_done;
-@@ -2338,6 +2347,8 @@ out:
+@@ -2334,6 +2343,8 @@ out:
struct mvneta_pcpu_stats *stats = this_cpu_ptr(pp->stats);
struct netdev_queue *nq = netdev_get_tx_queue(dev, txq_id);
@@ -51,7 +51,7 @@
txq->count += frags;
mvneta_txq_pend_desc_add(pp, txq, frags);
-@@ -2362,9 +2373,10 @@ static void mvneta_txq_done_force(struct
+@@ -2358,9 +2369,10 @@ static void mvneta_txq_done_force(struct
struct mvneta_tx_queue *txq)
{
@@ -63,7 +63,7 @@
/* reset txq */
txq->count = 0;
-@@ -2845,6 +2857,8 @@ static int mvneta_txq_init(struct mvneta
+@@ -2841,6 +2853,8 @@ static int mvneta_txq_init(struct mvneta
static void mvneta_txq_deinit(struct mvneta_port *pp,
struct mvneta_tx_queue *txq)
{
@@ -72,7 +72,7 @@
kfree(txq->tx_skb);
if (txq->tso_hdrs)
-@@ -2856,6 +2870,8 @@ static void mvneta_txq_deinit(struct mvn
+@@ -2852,6 +2866,8 @@ static void mvneta_txq_deinit(struct mvn
txq->size * MVNETA_DESC_ALIGNED_SIZE,
txq->descs, txq->descs_phys);