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:
Xiang Xiao
2020-01-11 11:56:03 +08:00
committed by patacongo
parent b96d0bfb70
commit 346336bb9e
41 changed files with 35 additions and 282 deletions
-6
View File
@@ -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