/* Nothing. */
}
+static int
+libbpf_print(enum libbpf_print_level level,
+ const char *format, va_list args)
+{
+ if (level == LIBBPF_WARN) {
+ vlog_valist(&this_module, VLL_WARN, format, args);
+ } else if (level == LIBBPF_INFO) {
+ vlog_valist(&this_module, VLL_INFO, format, args);
+ } else {
+ vlog_valist(&this_module, VLL_DBG, format, args);
+ }
+ return 0;
+}
+
+int netdev_afxdp_init(void)
+{
+ libbpf_set_print(libbpf_print);
+ return 0;
+}
+
int
netdev_afxdp_construct(struct netdev *netdev)
{
int netdev_afxdp_rxq_construct(struct netdev_rxq *rxq_);
void netdev_afxdp_rxq_destruct(struct netdev_rxq *rxq_);
+int netdev_afxdp_init(void);
int netdev_afxdp_construct(struct netdev *netdev_);
void netdev_afxdp_destruct(struct netdev *netdev_);
int netdev_afxdp_verify_mtu_size(const struct netdev *netdev, int mtu);
NETDEV_LINUX_CLASS_COMMON,
.type = "afxdp",
.is_pmd = true,
+ .init = netdev_afxdp_init,
.construct = netdev_afxdp_construct,
.destruct = netdev_afxdp_destruct,
.get_stats = netdev_afxdp_get_stats,