Problem description
For PPTP/L2TP device interfaces, the FC driver should not set netif_F_HW_Csum, because HW does not support calculating the TCP/UDP checksum encapsulated by PPTP/L2TP header. It provides a function to set which device interface does not set netif_F_HW_CSUM
Solution
File path: rtl819x/linux-4.4.x/drivers/net/ethernet/realtek/rtl86900/FleetConntrackDriver/src/rtk_fc_helper_ps.c
int rtk_set_hw_csum(char *dev_name)
{
// It does not support hw checksum feature for wlan and pptp/l2tp interface
// for RTK use application: PPP9~12 are used for PPTP/L2TP, hw checksum offload didn't
support inner header update so we must NOT turn on it.
if(strncmp(dev_name, "wlan", 4) && strncmp(dev_name, "ppp9", 4) && strncmp(dev_name,
"ppp10", 5) && strncmp(dev_name, "ppp11", 5) && strncmp(dev_name, "ppp12", 5))
return TRUE;
else
return FALSE;
}
SDK, PPTP/L2TP device interface name is ppp9 ~ ppp12. Therefore, if you modify the PPTP/L2TP device interface name (not ppp9 ~ ppp12), you should also modify the function RTK_set_hw_csum().
Read More:
- linux(aarch64): How to Fix kettle Startup Error Issue
- How to Fix No default.conf file in conf.d after Installing Nginx
- How to Solve gtid master-slave replication connecting Issue
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- Linux: How to Fix undefined reference to `itoa’
- How to Fix Ubuntu(Linux) mount error(22)
- How to Fix error 28 from storage engine
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- How to fix the ERROR: Failed to build gem native extension in Centos 8
- How to Fix Oracle listener error Linux error: 111: connection reused
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- Summary of unity3d 11 SceneManager scene management usage
- [Solved] Gitlab Error: gitlab-ctl reconfigure Error: STDERR: initdb: error: invalid locale settings; check LANG and L
- C#: How to Use Itextsharp to Manipulate PDF Files
- How to Solve C++ Error: “no matching function for call to ‘atoi/atof’”
- Ubuntu Server: How to Install Chrome
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- How to Solve Ubuntu “Failed to fetch” Error