[RFC V2 PATCH 20/25] net/netpolicy: introduce per task net policy

2016-08-04 Thread kan . liang
From: Kan Liang Usually, application as a whole has specific requirement. Applying the net policy to all sockets one by one in the application is too complex. This patch introduces per task net policy to address this case. Once the per task net policy is applied, all the sockets in the applicatio

[RFC V2 PATCH 20/25] net/netpolicy: introduce per task net policy

2016-08-04 Thread kan . liang
From: Kan Liang Usually, application as a whole has specific requirement. Applying the net policy to all sockets one by one in the application is too complex. This patch introduces per task net policy to address this case. Once the per task net policy is applied, all the sockets in the applicatio