netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] netlink_ack: send a capped message in case of error
@ 2015-08-23 22:06 Christophe Ricard
  2015-08-23 22:06 ` [RFC] netlink: netlink_ack " Christophe Ricard
  0 siblings, 1 reply; 6+ messages in thread
From: Christophe Ricard @ 2015-08-23 22:06 UTC (permalink / raw)
  To: pablo, jbenc, sameo; +Cc: netdev, davem, Christophe Ricard

Hi,

I have found with netlink we can miss a ack message when exchanging large buffers.
I came across this "bug ?" when doing some tests on the NFC subsytem by trying to
send extended APDU to a secure element (up to 65K) or when sending specific device
firmware data (up to 8K) (NFC_ATTR_SE_APDU & NFC_ATTR_VENDOR_DATA).

After some search on the web, i found this topic was already threated by Jiri Benc in November 2013: 
- http://patchwork.ozlabs.org/patch/290976/
- http://www.spinics.net/lists/netdev/msg256938.html

I haven't found any update or any fix in recent kernel.

I liked the netlink message cap approach.

Do you have any update ?
Do you think a netlink message cap in netlink_ack in case of an error is an acceptable approach ?

Best Regards
Christophe

Christophe Ricard (1):
  netlink: netlink_ack send a capped message in case of error

 net/netlink/af_netlink.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-25 19:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-23 22:06 [RFC] netlink_ack: send a capped message in case of error Christophe Ricard
2015-08-23 22:06 ` [RFC] netlink: netlink_ack " Christophe Ricard
2015-08-24  3:27   ` Scott Feldman
     [not found]     ` <CALD+uuz7NHdWU0qqogu6_cs81Ng6gpcCPFUr4WUF+hpQPMaysg@mail.gmail.com>
2015-08-24 18:56       ` Pablo Neira Ayuso
2015-08-25  4:19         ` David Miller
2015-08-25 19:22           ` Christophe Ricard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).