aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/adj
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-07-24 00:02:55 -0400
committerZhiyong Yang <zhiyong.yang@intel.com>2019-07-24 00:04:20 -0400
commit994ef1c1643d89eebc4f5fa8ba1e97e3e3a7ab2a (patch)
treeb71a4cedc18b03c5db093e35c6a19eb1fbbdc025 /src/vnet/adj
parenta9ed6f70202eb43ef50c304f3569505815360cb9 (diff)
fib: remove unused input parameter
Type: style Change-Id: I2a21076fffaeb5726be80356aaffc9fea3d95850 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/vnet/adj')
-rw-r--r--src/vnet/adj/rewrite.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vnet/adj/rewrite.h b/src/vnet/adj/rewrite.h
index 05a722fc764..9b83b5ac0db 100644
--- a/src/vnet/adj/rewrite.h
+++ b/src/vnet/adj/rewrite.h
@@ -153,7 +153,7 @@ vnet_rewrite_get_data_internal (vnet_rewrite_header_t * rw, int max_size)
always_inline void
_vnet_rewrite_one_header (vnet_rewrite_header_t * h0,
- void *packet0, int max_size, int most_likely_size)
+ void *packet0, int most_likely_size)
{
/* 0xfefe => poisoned adjacency => crash */
ASSERT (h0->data_bytes != 0xfefe);
@@ -172,8 +172,7 @@ _vnet_rewrite_one_header (vnet_rewrite_header_t * h0,
always_inline void
_vnet_rewrite_two_headers (vnet_rewrite_header_t * h0,
vnet_rewrite_header_t * h1,
- void *packet0,
- void *packet1, int max_size, int most_likely_size)
+ void *packet0, void *packet1, int most_likely_size)
{
/* 0xfefe => poisoned adjacency => crash */
ASSERT (h0->data_bytes != 0xfefe);
@@ -198,13 +197,11 @@ _vnet_rewrite_two_headers (vnet_rewrite_header_t * h0,
#define vnet_rewrite_one_header(rw0,p0,most_likely_size) \
_vnet_rewrite_one_header (&((rw0).rewrite_header), (p0), \
- sizeof ((rw0).rewrite_data), \
(most_likely_size))
#define vnet_rewrite_two_headers(rw0,rw1,p0,p1,most_likely_size) \
_vnet_rewrite_two_headers (&((rw0).rewrite_header), &((rw1).rewrite_header), \
(p0), (p1), \
- sizeof ((rw0).rewrite_data), \
(most_likely_size))
always_inline void