]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/flow_classify.rst
net/af_xdp: forbid umem sharing for xsks with same context
[dpdk.git] / doc / guides / sample_app_ug / flow_classify.rst
index bc234b50a7811f94a87f2bc85aede780fb4ea7ef..31175cff0aafbf87c1d4c39779541b9724250058 100644 (file)
@@ -271,7 +271,7 @@ Forwarding application is shown below:
 .. code-block:: c
 
     static inline int
-    port_init(uint8_t port, struct rte_mempool *mbuf_pool)
+    port_init(uint16_t port, struct rte_mempool *mbuf_pool)
     {
         struct rte_eth_conf port_conf = port_conf_default;
         const uint16_t rx_rings = 1, tx_rings = 1;
@@ -422,7 +422,7 @@ following:
             .stats = (void *)&ntuple_stats
     };
 
-    static __attribute__((noreturn)) void
+    static __rte_noreturn void
     lcore_main(cls_app)
     {
         uint16_t port;