On Mon, Mar 26, 2018 at 9:01 PM, Md. Islam wrote:
> On Mon, Mar 26, 2018 at 10:21 AM, David Miller wrote:
>> From: "Md. Islam"
>> Date: Fri, 23 Mar 2018 02:43:16 -0400
>>
>>> +#ifdef CONFIG_XDP_ROUTER
>>> +//if IP forwarding is enabled on the receiver, create xdp_buff
>>> +//from
On Mon, Mar 26, 2018 at 10:21 AM, David Miller wrote:
> From: "Md. Islam"
> Date: Fri, 23 Mar 2018 02:43:16 -0400
>
>> +#ifdef CONFIG_XDP_ROUTER
>> +//if IP forwarding is enabled on the receiver, create xdp_buff
>> +//from skb and call xdp_router_forward()
>
> Never use C++ commen
From: "Md. Islam"
Date: Fri, 23 Mar 2018 02:43:16 -0400
> +#ifdef CONFIG_XDP_ROUTER
> +//if IP forwarding is enabled on the receiver, create xdp_buff
> +//from skb and call xdp_router_forward()
Never use C++ comments, only use C style.
> +if(is_forwarding_enabled(rcv)){
Hi
This patch implements IPv4 forwarding on xdp_buff. Currently it only
works with VETH. It forwards packets as soon as a veth receives a
packet. Currently VETH uses slow path for packet forwarding which
requires packet to go through upper layers. However this patch
forwards the packet as soon as