@@ -48,6 +48,24 @@ extern "C" {
* Actual MAC address sizes may be different.
*/
+/**
+ * Packet IO interface control information
+ *
+ * A collection of flags that indicate interface control operation availability.
+ * A packet IO interface control operation is permitted when the corresponding
+ * flag is set. Otherwise, the operation is not permitted on the interface.
+ */
+typedef struct odp_pktio_ctrl_info_t {
+ struct {
+ uint32_t mtu:1; /**< Set MTU */
+ uint32_t promisc:1; /**< Set promiscuous mode */
+ uint32_t max_frame:1; /**< Set maximum frame length */
+ uint32_t min_frame:1; /**< Set minimum frame length */
+ uint32_t link:1; /**< Set link status*/
+
+ uint32_t _reserved:27; /**< Reserved for future use */
+ } flag; /**< Operation flags */
+} odp_pktio_ctrl_info_t;
We've used unions for these sort of flags in things like packet_flags, which I think makes for more convenient manipulation. So better might be: