mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
Make the read ahead buffer unselectable
Here is the email loop talk about why it is better to remove the option: https://groups.google.com/forum/#!topic/nuttx/AaNkS7oU6R0 Change-Id: Ib66c037752149ad4b2787ef447f966c77aa12aad Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -83,7 +83,6 @@ int udp_readahead_notifier_setup(worker_t worker,
|
||||
FAR struct udp_conn_s *conn,
|
||||
FAR void *arg)
|
||||
{
|
||||
#ifdef CONFIG_NET_UDP_READAHEAD
|
||||
struct work_notifier_s info;
|
||||
|
||||
DEBUGASSERT(worker != NULL);
|
||||
@@ -106,9 +105,6 @@ int udp_readahead_notifier_setup(worker_t worker,
|
||||
info.worker = worker;
|
||||
|
||||
return work_notifier_setup(&info);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -215,14 +211,12 @@ int udp_notifier_teardown(int key)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_UDP_READAHEAD
|
||||
void udp_readahead_signal(FAR struct udp_conn_s *conn)
|
||||
{
|
||||
/* This is just a simple wrapper around work_notifier_signal(). */
|
||||
|
||||
return work_notifier_signal(WORK_UDP_READAHEAD, conn);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: udp_writebuffer_signal
|
||||
|
||||
Reference in New Issue
Block a user