[PATCH v5 5/5] i40e: Call geneve_get_rx_port to get the existing Geneve ports

2015-12-14 Thread Anjali Singhai Jain
This patch adds a call to geneve_get_rx_port in i40e so that when it comes up it can learn about the existing geneve tunnels. Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e

[PATCH v5 2/5] i40e: geneve tunnel offload support

2015-12-14 Thread Anjali Singhai Jain
This patch adds driver hooks to implement ndo_ops to add/del udp port in the HW to identify GENEVE tunnels. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e.h | 16 +-- drivers/net/ethernet/intel/i40e/i40e_main.c | 167

[PATCH v5 1/5] geneve: Add geneve udp port offload for ethernet devices

2015-12-14 Thread Anjali Singhai Jain
Add ndo_ops to add/del UDP ports to a device that supports geneve offload. v2: Comment fix. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/geneve.c | 23 +++ include/linux/netdevice.h | 20 +++- 2 files changed, 42

[PATCH v5 3/5] i40e: Kernel dependency update for i40e to support geneve offload

2015-12-14 Thread Anjali Singhai Jain
Update the Kconfig file with dependency for supporting GENEVE tunnel offloads. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net

[PATCH v5 0/5] Add support for Geneve udp port offload

2015-12-14 Thread Anjali Singhai Jain
: Add Performance data. v4: Comment fix and split a patch into two. v5: Add cover letter. Anjali Singhai Jain (5): geneve: Add geneve udp port offload for ethernet devices i40e: geneve tunnel offload support i40e: Kernel dependency update for i40e to support geneve offload geneve: Add

[PATCH v5 4/5] geneve: Add geneve_get_rx_port support

2015-12-14 Thread Anjali Singhai Jain
This patch adds an op that the drivers can call into to get existing geneve ports. Signed-off-by: Anjali Singhai Jain --- drivers/net/geneve.c | 24 include/net/geneve.h | 8 2 files changed, 32 insertions(+) diff --git a/drivers/net/geneve.c b/drivers/net

[PATCH v4 5/5] i40e: Call geneve_get_rx_port to get the existing Geneve ports

2015-12-14 Thread Anjali Singhai Jain
This patch adds a call to geneve_get_rx_port in i40e so that when it comes up it can learn about the existing geneve tunnels. Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e

[PATCH v4 3/5] i40e: Kernel dependency update for i40e to support geneve offload

2015-12-14 Thread Anjali Singhai Jain
Update the Kconfig file with dependency for supporting GENEVE tunnel offloads. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net

[PATCH v4 2/5] i40e: geneve tunnel offload support

2015-12-14 Thread Anjali Singhai Jain
This patch adds driver hooks to implement ndo_ops to add/del udp port in the HW to identify GENEVE tunnels. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e.h | 16 +-- drivers/net/ethernet/intel/i40e/i40e_main.c | 167

[PATCH v4 4/5] geneve: Add geneve_get_rx_port support

2015-12-14 Thread Anjali Singhai Jain
This patch adds an op that the drivers can call into to get existing geneve ports. Signed-off-by: Anjali Singhai Jain --- drivers/net/geneve.c | 24 include/net/geneve.h | 8 2 files changed, 32 insertions(+) diff --git a/drivers/net/geneve.c b/drivers/net

[PATCH v4 0/5] Add support for Geneve udp port offload

2015-12-14 Thread Anjali Singhai Jain
split a patch into two. Anjali Singhai Jain (5): geneve: Add geneve udp port offload for ethernet devices i40e: geneve tunnel offload support i40e: Kernel dependency update for i40e to support geneve offload geneve: Add geneve_get_rx_port support i40e: Call geneve_get_rx_port to get the

[PATCH v4 1/5] geneve: Add geneve udp port offload for ethernet devices

2015-12-14 Thread Anjali Singhai Jain
Add ndo_ops to add/del UDP ports to a device that supports geneve offload. v2: Comment fix. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/geneve.c | 23 +++ include/linux/netdevice.h | 20 +++- 2 files changed, 42

[PATCH v3 2/4] i40e: geneve tunnel offload support

2015-12-08 Thread Anjali Singhai Jain
This patch adds driver hooks to implement ndo_ops to add/del udp port in the HW to identify GENEVE tunnels. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e.h | 16 +-- drivers/net/ethernet/intel/i40e/i40e_main.c | 167

[PATCH v3 1/4] geneve: Add geneve udp port offload for ethernet devices

2015-12-08 Thread Anjali Singhai Jain
Add ndo_ops to add/del UDP ports to a device that supports geneve offload. v3: Add some more comments about the use of the new ndo ops. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/geneve.c | 23 +++ include/linux/netdevice.h | 21

[PATCH v3 4/4] geneve: Add geneve_get_rx_port support

2015-12-08 Thread Anjali Singhai Jain
This patch adds an op that the drivers can call into to get existing geneve ports. Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +++ drivers/net/geneve.c| 24 include/net/geneve.h

[PATCH v3 3/4] i40e: Kernel dependency update for i40e to support geneve offload

2015-12-08 Thread Anjali Singhai Jain
Update the Kconfig file with dependency for supporting GENEVE tunnel offloads. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net

Add support for Geneve udp port offload

2015-12-08 Thread Anjali Singhai Jain
single thread %cpu: ~99% per core with 4 threads These numbers will get better for X722 as it is being worked. But this does bring out the delta in terms of when the stack is notified with csum_level 1 and CHECKSUM_UNNECESSARY vs not without the RX offload. Anjali Singhai Jain (4): [RFC PATCH v2 1

Add support for Geneve udp port offload

2015-12-04 Thread Anjali Singhai Jain
not loaded. Anjali Singhai Jain (4): [RFC PATCH v2 1/4] geneve: Add geneve udp port offload for ethernet [RFC PATCH v2 2/4] i40e: geneve tunnel offload support [RFC PATCH v2 3/4] i40e: Kernel dependency update for i40e to support [RFC PATCH v2 4/4] geneve: Add geneve_get_rx_port support -- To

[RFC PATCH v2 4/4] geneve: Add geneve_get_rx_port support

2015-12-04 Thread Anjali Singhai Jain
This patch adds an op that the drivers can call into to get existing geneve ports. Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +++ drivers/net/geneve.c| 24 include/net/geneve.h

[RFC PATCH v2 3/4] i40e: Kernel dependency update for i40e to support geneve offload

2015-12-04 Thread Anjali Singhai Jain
Update the Kconfig file with dependency for supporting GENEVE tunnel offloads. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net

[RFC PATCH v2 1/4] geneve: Add geneve udp port offload for ethernet devices

2015-12-04 Thread Anjali Singhai Jain
Add ndo_ops to add/del UDP ports to a device that supports geneve offload. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/geneve.c | 23 +++ include/linux/netdevice.h | 20 +++- 2 files changed, 42 insertions(+), 1

[RFC PATCH v2 2/4] i40e: geneve tunnel offload support

2015-12-04 Thread Anjali Singhai Jain
This patch adds driver hooks to implement ndo_ops to add/del udp port in the HW to identify GENEVE tunnels. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e.h | 16 +-- drivers/net/ethernet/intel/i40e/i40e_main.c | 167

[PATCH v2] Revert "i40e: remove CONFIG_I40E_VXLAN"

2015-12-03 Thread Anjali Singhai Jain
This reverts commit 8fe269991aece394a7ed274f525d96c73f94109a. The case where VXLAN is a module and i40e driver is inbuilt will not be handled properly with this change since i40e will have an undefined symbol vxlan_get_rx_port in it. v2: Add a signed-off-by. Signed-off-by: Anjali Singhai Jain

[PATCH] Revert "i40e: remove CONFIG_I40E_VXLAN"

2015-12-03 Thread Anjali Singhai Jain
This reverts commit 8fe269991aece394a7ed274f525d96c73f94109a. The case where VXLAN is a module and i40e driver is in built will not be handled properly with this change since i40e will have an undefined symbol vxlan_get_rx_port in it. --- drivers/net/ethernet/intel/Kconfig | 11 ++

[PATCH v2] net: Generalize udp based tunnel offload

2015-11-23 Thread Anjali Singhai Jain
driver. Signed-off-by: Kiran Patil Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 15 ++--- drivers/net/ethernet/broadcom/bnxt/bnxt.c| 14 +--- drivers/net/ethernet/emulex/benet/be_main.c | 14 +--- drivers/net/ethernet/intel

[PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-23 Thread Anjali Singhai Jain
Patil Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 15 ++--- drivers/net/ethernet/broadcom/bnxt/bnxt.c| 13 +--- drivers/net/ethernet/emulex/benet/be_main.c | 14 +--- drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 27

[PATCH v1 4/6] i40e: Remove CONFIG_I40E_VXLAN

2015-11-23 Thread Anjali Singhai Jain
If the kernel flag CONFIG_VXLAN is true or CONFIG_VXLAN_MODULE is true, enable VXLAN offload in the driver. Signed-off-by: Kiran Patil Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/Kconfig | 11 --- drivers/net/ethernet/intel/i40e/i40e_main.c | 14

[PATCH v1 2/6] net: Add a generic udp_offload_get_port function

2015-11-23 Thread Anjali Singhai Jain
change. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 5 ++-- drivers/net/ethernet/broadcom/bnxt/bnxt.c| 4 +++- drivers/net/ethernet/emulex/benet/be_main.c | 4 +++- drivers/net/ethernet/intel/fm10k

[PATCH 0/6] Generalize udp based tunnels and add geneve offload

2015-11-23 Thread Anjali Singhai Jain
the right way. Anjali Singhai Jain (6): net: Generalize udp based tunnel offload net: Add a generic udp_offload_get_port function i40e: Generalize the flow for udp based tunnels i40e: Remove CONFIG_I40E_VXLAN net: Refactor udp_offload and add Geneve port offload i40e:Add geneve tunnel offload

[PATCH v1 3/6] i40e: Generalize the flow for udp based tunnels

2015-11-23 Thread Anjali Singhai Jain
This patch generalizes the driver flow to make room for more than just VXLAN tunnel by defining a common data structure with tunnel type. Signed-off-by: Kiran Patil Signed-off-by: Anjali Singhai Jain --- drivers/net/ethernet/intel/i40e/i40e.h | 15 drivers/net/ethernet/intel/i40e

[PATCH v1 6/6] i40e:Add geneve tunnel offload support

2015-11-23 Thread Anjali Singhai Jain
This patch adds driver hooks to implement ndo_ops to add/del udp port in the HW to identify GENEVE tunnels. Also cleans up the features_check path now that we support multiple udp based tunnels. Signed-off-by: Anjali Singhai Jain Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e

[PATCH v1 5/6] net: Refactor udp_offload and add Geneve port offload support

2015-11-23 Thread Anjali Singhai Jain
This patch moves the calls to ndo_add/del ops for vxlan tunnel into udp_add/del_offload call. This way the ndo_add/del ops get called for not only vxlan tunnels but for any udp based tunnel. Signed-off-by: Kiran Patil Signed-off-by: Anjali Singhai Jain --- drivers/net/geneve.c | 18