When installing the rules to tell mPIPE to send packet to Suricata,
give it a higher priority than the default used by Linux. This way if
Linux also tells mPIPE to send it packets, Suricata will get them
instead, as long as Suricata is running.
gxio_mpipe_rules_t rules;
gxio_mpipe_rules_init(&rules, context);
gxio_mpipe_rules_begin(&rules, bucket, num_buckets, NULL);
+ /* Give Suricata priority over Linux to receive packets. */
+ gxio_mpipe_rules_set_priority(&rules, -100);
return gxio_mpipe_rules_commit(&rules);
}