Perform packet copy there is a user-defined function. 8< */
| 299 | |
| 300 | /* Perform packet copy there is a user-defined function. 8< */ |
| 301 | static inline void |
| 302 | pktmbuf_metadata_copy(const struct rte_mbuf *src, struct rte_mbuf *dst) |
| 303 | { |
| 304 | dst->data_off = src->data_off; |
| 305 | memcpy(&dst->rx_descriptor_fields1, &src->rx_descriptor_fields1, |
| 306 | offsetof(struct rte_mbuf, buf_len) - |
| 307 | offsetof(struct rte_mbuf, rx_descriptor_fields1)); |
| 308 | } |
| 309 | |
| 310 | /* Copy packet data */ |
| 311 | static inline void |