git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace no-return attributes
[dpdk.git]
/
examples
/
performance-thread
/
l3fwd-thread
/
main.c
diff --git
a/examples/performance-thread/l3fwd-thread/main.c
b/examples/performance-thread/l3fwd-thread/main.c
index
ad540fd
..
43a5b92
100644
(file)
--- a/
examples/performance-thread/l3fwd-thread/main.c
+++ b/
examples/performance-thread/l3fwd-thread/main.c
@@
-331,7
+331,7
@@
struct ipv4_5tuple {
uint16_t port_dst;
uint16_t port_src;
uint8_t proto;
uint16_t port_dst;
uint16_t port_src;
uint8_t proto;
-} __
attribute__((__packed__))
;
+} __
rte_packed
;
union ipv4_5tuple_host {
struct {
union ipv4_5tuple_host {
struct {
@@
-354,7
+354,7
@@
struct ipv6_5tuple {
uint16_t port_dst;
uint16_t port_src;
uint8_t proto;
uint16_t port_dst;
uint16_t port_src;
uint8_t proto;
-} __
attribute__((__packed__))
;
+} __
rte_packed
;
union ipv6_5tuple_host {
struct {
union ipv6_5tuple_host {
struct {
@@
-869,7
+869,7
@@
get_ipv6_dst_port(void *ipv6_hdr, uint16_t portid,
#endif
static inline void l3fwd_simple_forward(struct rte_mbuf *m, uint16_t portid)
#endif
static inline void l3fwd_simple_forward(struct rte_mbuf *m, uint16_t portid)
- __
attribute__((unused))
;
+ __
rte_unused
;
#if ((APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) && \
(ENABLE_MULTI_BUFFER_OPTIMIZE == 1))
#if ((APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) && \
(ENABLE_MULTI_BUFFER_OPTIMIZE == 1))
@@
-1120,7
+1120,7
@@
simple_ipv6_fwd_8pkts(struct rte_mbuf *m[8], uint16_t portid)
struct rte_ether_hdr *eth_hdr[8];
union ipv6_5tuple_host key[8];
struct rte_ether_hdr *eth_hdr[8];
union ipv6_5tuple_host key[8];
- __
attribute__((unused))
struct rte_ipv6_hdr *ipv6_hdr[8];
+ __
rte_unused
struct rte_ipv6_hdr *ipv6_hdr[8];
eth_hdr[0] = rte_pktmbuf_mtod(m[0], struct rte_ether_hdr *);
eth_hdr[1] = rte_pktmbuf_mtod(m[1], struct rte_ether_hdr *);
eth_hdr[0] = rte_pktmbuf_mtod(m[0], struct rte_ether_hdr *);
eth_hdr[1] = rte_pktmbuf_mtod(m[1], struct rte_ether_hdr *);
@@
-1877,7
+1877,7
@@
process_burst(struct rte_mbuf *pkts_burst[MAX_PKT_BURST], int nb_rx,
/*
* CPU-load stats collector
*/
/*
* CPU-load stats collector
*/
-static int __
attribute__((noreturn))
+static int __
rte_noreturn
cpu_load_collector(__rte_unused void *arg) {
unsigned i, j, k;
uint64_t hits;
cpu_load_collector(__rte_unused void *arg) {
unsigned i, j, k;
uint64_t hits;
@@
-2299,7
+2299,7
@@
sched_spawner(__rte_unused void *arg) {
}
/* main processing loop */
}
/* main processing loop */
-static int __
attribute__((noreturn))
+static int __
rte_noreturn
pthread_tx(void *dummy)
{
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
pthread_tx(void *dummy)
{
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];