VPP-1549 Add missing counter name. 44/16944/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 21 Jan 2019 16:48:21 +0000 (08:48 -0800)
committerNeale Ranns <nranns@cisco.com>
Mon, 21 Jan 2019 19:13:42 +0000 (19:13 +0000)
show interface

              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
local0                            0     down          0/0/0/0
pg0                               1     down         9000/0/0/0     rx packets                   582
                                                                    rx bytes                   34051
                                                                    tx packets                     4
                                                                    tx bytes                     364
                                                                    drops                        323
                                                                    ip6                            1
                                                                    (nil)                        580

----
show interface
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
local0                            0     down          0/0/0/0
pg0                               1     down         9000/0/0/0     rx packets                   582
                                                                    rx bytes                   34051
                                                                    tx packets                     4
                                                                    tx bytes                     364
                                                                    drops                        323
                                                                    ip6                            1
                                                                    mpls                         580

Change-Id: I3dcde4799764277535baf42f855e4e8bb48c0d02
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vnet/interface.h

index f6f486e..2e32a79 100644 (file)
@@ -774,7 +774,8 @@ typedef enum
   _(RX_NO_BUF, rx-no-buf, if)                  \
   _(RX_MISS, rx-miss, if)                      \
   _(RX_ERROR, rx-error, if)                    \
-  _(TX_ERROR, tx-error, if)
+  _(TX_ERROR, tx-error, if)         \
+  _(MPLS, mpls, if)
 
 #define foreach_combined_interface_counter_name        \
   _(RX, rx, if)                                        \