>AFAIK, we can't copy-paste code from Linux kernel. >As you noted it is under GPL, while DPDK is under BSD-3 license. Well, I'll rewrite the code. >Library routine has no idea would original IP packet will be used later or not. >In your particular case it might be not needed, but there might be other usages, >that do use it (logging, send un-fragmented via other port, etc.). >So I think we have to preserve original behaviour. Ok,I will preserve original.