muvarov replied on github web page:

include/odp/api/spec/packet_io.h
line 64
@@ -970,6 +970,36 @@ int odp_pktio_promisc_mode_set(odp_pktio_t pktio, 
odp_bool_t enable);
 int odp_pktio_promisc_mode(odp_pktio_t pktio);
 
 /**
+ * Maximum frame length at packet input
+ *
+ * Maximum frame length in bytes that the packet IO interface can receive.
+ * For Ethernet, the frame length bytes start with MAC addresses and continue
+ * to the end of the payload. So, Ethernet checksum, interpacket gap
+ * and preamble bytes are excluded from the length.
+ *
+ * @param pktio  Packet IO handle.
+ *
+ * @return Maximum frame length at packet input
+ * @retval 0 on failure
+ */
+uint32_t odp_pktin_maxlen(odp_pktio_t pktio);


Comment:
bad naming. odp_pktin_xxx functions take argument odp_pktin_queue_t not 
odp_pktio_t.  If you want to keep odp_pktio_t as argument for function, then 
odp_pktio_capability_t is more logical place for it,

https://github.com/Linaro/odp/pull/298#discussion_r151461313
updated_at 2017-11-16 16:13:30

Reply via email to