+ /*
+ * No padding must be inserted by the compiler between attr and spec.
+ * This layout is expected by libibverbs.
+ */
+ assert(((uint8_t *)attr + sizeof(*attr)) == (uint8_t *)spec);
+ hash_rxq_flow_attr(hash_rxq, attr, sizeof(data));
+ *spec = (struct ibv_exp_flow_spec_eth){
+ .type = IBV_EXP_FLOW_SPEC_ETH,
+ .size = sizeof(*spec),
+ .val = {
+ .dst_mac = "\x01\x00\x00\x00\x00\x00",
+ },
+ .mask = {
+ .dst_mac = "\x01\x00\x00\x00\x00\x00",
+ },
+ };