summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2014-08-28 16:42:38 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-09-17 11:27:51 +0200
commitca04aaea8011f983178d295cd9e73a43fc2eaf7c (patch)
tree45ea026d9759a82efbca6d2b8353bd8c3eafa5c1 /examples/ipv4_multicast
parentea672a8b1655bbb44876d2550ff56f384968a43b (diff)
downloaddpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.zip
dpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.tar.gz
dpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.tar.xz
mbuf: rename in_port to just port
In some cases we may want to tag a packet for a particular destination or output port, so rename the "in_port" field in the mbuf to just "port" so that it can be re-used for this purpose if an application needs it. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index cc12d9d..2232851 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -337,7 +337,7 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone)
hdr->nb_segs = (uint8_t)(pkt->nb_segs + 1);
/* copy metadata from source packet*/
- hdr->in_port = pkt->in_port;
+ hdr->port = pkt->port;
hdr->vlan_macip = pkt->vlan_macip;
hdr->hash = pkt->hash;