aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-11-21 10:31:03 +0000
committerDamjan Marion <dmarion@me.com>2019-11-26 09:54:29 +0000
commit7dbf9a1a4fff5c3b20ad972289e49e3f88e82f2d (patch)
treefbe9a1362abd78baa612da2c7d8a055c6f60c12f /src/vnet/l2
parent981a690b7d25c96ea56f95ece693377f95b93fc1 (diff)
fib: reduce save_rewrite_length to u8
This is a preparation step for migrating NAT to use SVR (shallow virtual reassembly) to conserve space in vnet_buffer. Since max rewrite length is currently pre-data size (128), u8 is sufficient to hold that value. Type: refactor Change-Id: I5374bb396e178245b870cb0bbf1370d2a54230bc Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/l2')
-rw-r--r--src/vnet/l2/l2_xcrw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/l2/l2_xcrw.h b/src/vnet/l2/l2_xcrw.h
index e21c884c401..fbb2c8031ac 100644
--- a/src/vnet/l2/l2_xcrw.h
+++ b/src/vnet/l2/l2_xcrw.h
@@ -31,7 +31,7 @@ typedef struct
* Let: rewrite_header.sw_if_index = tx_fib_index or ~0.
* rewrite_header.next_index = L2_XCRW_NEXT_XXX
*/
- vnet_declare_rewrite (VLIB_BUFFER_PRE_DATA_SIZE);
+ VNET_DECLARE_REWRITE;
} l2_xcrw_adjacency_t;
typedef struct