Line data Source code
1 : /* SPDX-License-Identifier: GPL-2.0-only */
2 : /*
3 : * Copyright (c) 2022 Meta Platforms, Inc. and affiliates.
4 : */
5 :
6 : #include <errno.h>
7 :
8 : #include "bpfilter/xlate/front.h"
9 : #include "core/helper.h"
10 : #include "core/marsh.h"
11 : #include "core/request.h"
12 : #include "core/response.h"
13 :
14 0 : static int _bf_nft_setup(void)
15 : {
16 0 : return 0;
17 : }
18 :
19 0 : static int _bf_nft_teardown(void)
20 : {
21 0 : return 0;
22 : }
23 :
24 0 : static int _bf_nft_marsh(struct bf_marsh **marsh)
25 : {
26 : UNUSED(marsh);
27 :
28 0 : return 0;
29 : }
30 :
31 0 : static int _bf_nft_unmarsh(struct bf_marsh *marsh)
32 : {
33 : UNUSED(marsh);
34 :
35 0 : return 0;
36 : }
37 :
38 0 : static int _bf_nft_request_handler(struct bf_request *request,
39 : struct bf_response **response)
40 : {
41 : UNUSED(request);
42 :
43 0 : bf_assert(response);
44 :
45 0 : return bf_response_new_failure(response, -ENOTSUP);
46 : }
47 :
48 : const struct bf_front_ops nft_front = {
49 : .setup = _bf_nft_setup,
50 : .teardown = _bf_nft_teardown,
51 : .request_handler = _bf_nft_request_handler,
52 : .marsh = _bf_nft_marsh,
53 : .unmarsh = _bf_nft_unmarsh,
54 : };
|