1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
4 #include "funeth_devlink.h"
6 static const struct devlink_ops fun_dl_ops
= {
9 struct devlink
*fun_devlink_alloc(struct device
*dev
)
11 return devlink_alloc(&fun_dl_ops
, sizeof(struct fun_ethdev
), dev
);
14 void fun_devlink_free(struct devlink
*devlink
)
16 devlink_free(devlink
);
19 void fun_devlink_register(struct devlink
*devlink
)
21 devlink_register(devlink
);
24 void fun_devlink_unregister(struct devlink
*devlink
)
26 devlink_unregister(devlink
);