summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_qca.c
diff options
context:
space:
mode:
authorVivien Didelot2017-01-27 21:29:39 +0100
committerDavid S. Miller2017-01-30 00:42:46 +0100
commitafdcf151c1f7346207dcee3f8d6d82991dbbb7e5 (patch)
tree1afa077b113e04b364c88e90cabade71e3675f80 /net/dsa/tag_qca.c
parentnet: dsa: add ds and index to dsa_port (diff)
downloadkernel-qcow2-linux-afdcf151c1f7346207dcee3f8d6d82991dbbb7e5.tar.gz
kernel-qcow2-linux-afdcf151c1f7346207dcee3f8d6d82991dbbb7e5.tar.xz
kernel-qcow2-linux-afdcf151c1f7346207dcee3f8d6d82991dbbb7e5.zip
net: dsa: store a dsa_port in dsa_slave_priv
Store a pointer to the dsa_port structure in the dsa_slave_priv structure, instead of the switch/port index. This will allow to store more information such as the bridge device, needed in DSA drivers for multi-chip configuration. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_qca.c')
-rw-r--r--net/dsa/tag_qca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/tag_qca.c b/net/dsa/tag_qca.c
index 736ca8e8c31e..30240f343aea 100644
--- a/net/dsa/tag_qca.c
+++ b/net/dsa/tag_qca.c
@@ -54,7 +54,7 @@ static struct sk_buff *qca_tag_xmit(struct sk_buff *skb, struct net_device *dev)
/* Set the version field, and set destination port information */
hdr = QCA_HDR_VERSION << QCA_HDR_XMIT_VERSION_S |
QCA_HDR_XMIT_FROM_CPU |
- BIT(p->port);
+ BIT(p->dp->index);
*phdr = htons(hdr);