Add PPPoE Plugin 07/7407/24
authorHongjun Ni <hongjun.ni@intel.com>
Tue, 4 Jul 2017 12:11:57 +0000 (20:11 +0800)
committerNeale Ranns <nranns@cisco.com>
Wed, 9 Aug 2017 07:41:11 +0000 (07:41 +0000)
commit62f9cdd82c52dc05cb89a742d21aba013ce526d4
tree76fcde5125faf02ae21724598786e72acc568769
parentf73d0e2ea6bf4e0dc9c69ec4f1d0c7b9b41d2fa3
Add PPPoE Plugin

Supports 64K PPPoE sessions

This plugin adds three graph nodes:
1) pppoe-input for PPPoE decapsulation
2) pppoe-encap for PPPoE encapsulation
3) pppoe-tap-dispatch for control plane process

Below is the configuration to make PPPoE CP and DP work:
vim /etc/vpp/startup.conf
tuntap {
  enable
  ethernet
  name newtap
}

create pppoe tap tap-if-index 1

//Configure it after a subscriber's PPPoE discovery and PPP link establishment succeeds:
create pppoe session client-ip 100.1.2.1 session-id 1 client-mac 00:11:01:00:00:01

show pppoe fib
show pppoe session

Change-Id: I73e724b6bf7c3e4181a9914c5752da1fa72d7e60
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
22 files changed:
MAINTAINERS
src/configure.ac
src/plugins/Makefile.am
src/plugins/pppoe.am [new file with mode: 0644]
src/plugins/pppoe/pppoe.api [new file with mode: 0644]
src/plugins/pppoe/pppoe.c [new file with mode: 0644]
src/plugins/pppoe/pppoe.h [new file with mode: 0644]
src/plugins/pppoe/pppoe_all_api_h.h [new file with mode: 0644]
src/plugins/pppoe/pppoe_api.c [new file with mode: 0644]
src/plugins/pppoe/pppoe_decap.c [new file with mode: 0644]
src/plugins/pppoe/pppoe_encap.c [new file with mode: 0644]
src/plugins/pppoe/pppoe_error.def [new file with mode: 0644]
src/plugins/pppoe/pppoe_msg_enum.h [new file with mode: 0644]
src/plugins/pppoe/pppoe_tap.c [new file with mode: 0644]
src/plugins/pppoe/pppoe_tap_node.c [new file with mode: 0644]
src/plugins/pppoe/pppoe_test.c [new file with mode: 0644]
src/vpp-api/java/Makefile.am
src/vpp-api/java/jvpp-pppoe/jvpp_pppoe.c [new file with mode: 0644]
src/vpp-api/java/jvpp-pppoe/jvpp_pppoe.h [new file with mode: 0644]
test/test_pppoe.py [new file with mode: 0644]
test/vpp_papi_provider.py
test/vpp_pppoe_interface.py [new file with mode: 0644]