summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-03-11 19:23:25 +0100
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-11 21:57:19 +0000
commita5b2eec0535f9025319a752891d77ff9948ae0df (patch)
tree08c801cb85ab9639e00e5f565e613b817b3924e4 /test/vpp_interface.py
parent2d9b427a5b20dcec3d2212a3a8a47c29b4acdd46 (diff)
vpp_papi_provider: Remove more wrapper functions.
Split this work up into pieces. Please don't add new wrappers to vpp_papi_provider.py. Change-Id: I0f8f2afc4cd2bba07ea70ddecea2d7319f7b2e10 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 6797b10b3fe..84f694d7107 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -343,17 +343,17 @@ class VppInterface(object):
suppress=suppress,
send_unicast=send_unicast)
+ # TODO: This should accept ipaddress object.
def ip6_ra_prefix(self, address, address_length, is_no=0,
off_link=0, no_autoconfig=0, use_default=0):
"""Configure IPv6 RA suppress on the VPP interface."""
self.test.vapi.sw_interface_ip6nd_ra_prefix(
- self.sw_if_index,
- address,
- address_length,
- is_no=is_no,
- off_link=off_link,
- no_autoconfig=no_autoconfig,
- use_default=use_default)
+ sw_if_index=self.sw_if_index,
+ prefix={'address': address,
+ 'address_length': address_length},
+ use_default=use_default,
+ off_link=off_link, no_autoconfig=no_autoconfig,
+ is_no=is_no)
def admin_up(self):
"""Put interface ADMIN-UP."""
or: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2017 Intel Corporation
 */

#ifndef _RTE_MEMBER_HT_H_
#define _RTE_MEMBER_HT_H_

#ifdef __cplusplus
extern "C" {
#endif

/* Maximum number of pushes for cuckoo path in HT mode. */
#define RTE_MEMBER_MAX_PUSHES 50

typedef uint16_t member_sig_t;			/* signature size is 16 bit */

/* The bucket struct for ht setsum */
struct member_ht_bucket {
	member_sig_t sigs[RTE_MEMBER_BUCKET_ENTRIES];	/* 2-byte signature */
	member_set_t sets[RTE_MEMBER_BUCKET_ENTRIES];	/* 2-byte set */
} __rte_cache_aligned;

int
rte_member_create_ht(struct rte_member_setsum *ss,
		const struct rte_member_parameters *params);

int
rte_member_lookup_ht(const struct rte_member_setsum *setsum,
		const void *key, member_set_t *set_id);

uint32_t
rte_member_lookup_bulk_ht(const struct rte_member_setsum *setsum,
		const void **keys, uint32_t num_keys,
		member_set_t *set_ids);

uint32_t
rte_member_lookup_multi_ht(const struct rte_member_setsum *setsum,
		const void *key, uint32_t match_per_key,
		member_set_t *set_id);

uint32_t
rte_member_lookup_multi_bulk_ht(const struct rte_member_setsum *setsum,
		const void **keys, uint32_t num_keys, uint32_t match_per_key,
		uint32_t *match_count,
		member_set_t *set_ids);

int
rte_member_add_ht(const struct rte_member_setsum *setsum,
		const void *key, member_set_t set_id);

void
rte_member_free_ht(struct rte_member_setsum *setsum);

int
rte_member_delete_ht(const struct rte_member_setsum *ss, const void *key,
		member_set_t set_id);

void
rte_member_reset_ht(const struct rte_member_setsum *setsum);

#ifdef __cplusplus
}
#endif

#endif /* _RTE_MEMBER_HT_H_ */