* is_imm - check whether a packet can be sent as immediate data * @mbuf: the packet * * Returns true if a packet can be sent as a WR with immediate data. */
| 1268 | * Returns true if a packet can be sent as a WR with immediate data. |
| 1269 | */ |
| 1270 | static inline int is_imm(const struct rte_mbuf *mbuf) |
| 1271 | { |
| 1272 | return mbuf->pkt_len <= MAX_CTRL_WR_LEN; |
| 1273 | } |
| 1274 | |
| 1275 | /** |
| 1276 | * inline_tx_mbuf: inline a packet's data into TX descriptors |