Re: Netpoll APIs

2018-07-25 Thread jitendra kumar khasdev
Thanks, I am able to resolve the issue. Issue was in routing.

---
Jitendra
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Netpoll APIs

2018-07-17 Thread SeyedAlireza Sanaee
Hi,

I have a question on netpoll and I think it is a good opportunity to ask my
question in this thread,

I have always wondered what is the use cases of netpoll anyway?

Some months ago, I was designing a caching mechanism within the network
stack. I was just polling in NF_IP_PRE_ROUTING and check some keys in my
hash map if it is HIT then I will respond to the incoming request from the
kernel via NETPOLL without engaging the real key-value store(Memcached) in
the userspace! In miss cases I only let the request go through the kernel
network stack and the Memcached application will respond to the request
individually. I only update my hash my with respect the outgoing message
in NF_IP_POST_ROUTING. I intended to reduce the latency of the key-value
stores' requests at the data centers since these key-value stores are
widely deployed in the data center at Facebook and Google.

In my scenario, I only used netpoll as a hack to make my code working
though, however, I never figure out, what problem netpoll intended to solve.

Thank you,
Alireza

On Tue, Jul 17, 2018 at 8:21 PM  wrote:

> On Tue, 17 Jul 2018 18:35:15 +0530, jitendra kumar khasdev said:
>
> > Can netpoll apis send data over the internet. It worked for me in local
> > network but when I try to send data over server which is in cloud not
> able
> > to send it.
> >
> > Can anybody help me out ?
>
> If it works over the local net, time to do the standard network debugging:
>
> Does ping work to/from your cloud target?
> Does traceroute look sane?
> Does ssh/scp work?
> Are your routing tables correct at both ends?
> Is a firewall blocking it somewhere?
> Does 'netstat' show a program listening for your packets at the far end?
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Netpoll APIs

2018-07-17 Thread valdis . kletnieks
On Tue, 17 Jul 2018 18:35:15 +0530, jitendra kumar khasdev said:

> Can netpoll apis send data over the internet. It worked for me in local
> network but when I try to send data over server which is in cloud not able
> to send it.
>
> Can anybody help me out ?

If it works over the local net, time to do the standard network debugging:

Does ping work to/from your cloud target?
Does traceroute look sane?
Does ssh/scp work?
Are your routing tables correct at both ends?
Is a firewall blocking it somewhere?
Does 'netstat' show a program listening for your packets at the far end?


pgpKXCb7jf4hx.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Netpoll APIs

2018-07-17 Thread jitendra kumar khasdev
Hi All,

Can netpoll apis send data over the internet. It worked for me in local
network but when I try to send data over server which is in cloud not able
to send it.

Can anybody help me out ?


---
Jitendra
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies