[LLC] remove unsupported flowcontrol prim bits

parent 8447eb90
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#define LLC_DATA_PRIM 2 #define LLC_DATA_PRIM 2
#define LLC_DISC_PRIM 3 #define LLC_DISC_PRIM 3
#define LLC_RESET_PRIM 4 #define LLC_RESET_PRIM 4
#define LLC_FLOWCONTROL_PRIM 5 #define LLC_FLOWCONTROL_PRIM 5 /* Not supported at this time */
#define LLC_DISABLE_PRIM 6 #define LLC_DISABLE_PRIM 6
#define LLC_XID_PRIM 7 #define LLC_XID_PRIM 7
#define LLC_TEST_PRIM 8 #define LLC_TEST_PRIM 8
...@@ -71,12 +71,6 @@ struct llc_prim_reset { ...@@ -71,12 +71,6 @@ struct llc_prim_reset {
u8 reason; /* used only by indicate */ u8 reason; /* used only by indicate */
}; };
struct llc_prim_flow_ctrl {
struct sock *sk;
u16 link;
u32 amount;
};
/* Sending data in conection-less mode */ /* Sending data in conection-less mode */
struct llc_prim_unit_data { struct llc_prim_unit_data {
struct llc_addr saddr; struct llc_addr saddr;
...@@ -102,7 +96,6 @@ struct llc_prim_test { ...@@ -102,7 +96,6 @@ struct llc_prim_test {
union llc_u_prim_data { union llc_u_prim_data {
struct llc_prim_reset res; struct llc_prim_reset res;
struct llc_prim_flow_ctrl fc;
struct llc_prim_unit_data udata; /* unit data */ struct llc_prim_unit_data udata; /* unit data */
struct llc_prim_xid xid; struct llc_prim_xid xid;
struct llc_prim_test test; struct llc_prim_test test;
......
...@@ -33,7 +33,6 @@ static int llc_unitdata_req_handler(struct llc_prim_if_block *prim); ...@@ -33,7 +33,6 @@ static int llc_unitdata_req_handler(struct llc_prim_if_block *prim);
static int llc_test_req_handler(struct llc_prim_if_block *prim); static int llc_test_req_handler(struct llc_prim_if_block *prim);
static int llc_xid_req_handler(struct llc_prim_if_block *prim); static int llc_xid_req_handler(struct llc_prim_if_block *prim);
static int llc_rst_req_handler(struct llc_prim_if_block *prim); static int llc_rst_req_handler(struct llc_prim_if_block *prim);
static int llc_flowcontrol_req_handler(struct llc_prim_if_block *prim);
/* table of request handler functions */ /* table of request handler functions */
static llc_prim_call_t llc_req_prim[LLC_NBR_PRIMITIVES] = { static llc_prim_call_t llc_req_prim[LLC_NBR_PRIMITIVES] = {
...@@ -42,7 +41,7 @@ static llc_prim_call_t llc_req_prim[LLC_NBR_PRIMITIVES] = { ...@@ -42,7 +41,7 @@ static llc_prim_call_t llc_req_prim[LLC_NBR_PRIMITIVES] = {
[LLC_DATA_PRIM] = NULL, /* replaced by llc_build_and_send_pkt */ [LLC_DATA_PRIM] = NULL, /* replaced by llc_build_and_send_pkt */
[LLC_DISC_PRIM] = NULL, /* replaced by llc_send_disc */ [LLC_DISC_PRIM] = NULL, /* replaced by llc_send_disc */
[LLC_RESET_PRIM] = llc_rst_req_handler, [LLC_RESET_PRIM] = llc_rst_req_handler,
[LLC_FLOWCONTROL_PRIM] = llc_flowcontrol_req_handler, [LLC_FLOWCONTROL_PRIM] = NULL, /* Not supported at this time */
[LLC_XID_PRIM] = llc_xid_req_handler, [LLC_XID_PRIM] = llc_xid_req_handler,
[LLC_TEST_PRIM] = llc_test_req_handler, [LLC_TEST_PRIM] = llc_test_req_handler,
}; };
...@@ -372,13 +371,5 @@ static int llc_rst_req_handler(struct llc_prim_if_block *prim) ...@@ -372,13 +371,5 @@ static int llc_rst_req_handler(struct llc_prim_if_block *prim)
return rc; return rc;
} }
/* We don't support flow control. The original code from procom has
* some bits, but for now I'm cleaning this
*/
static int llc_flowcontrol_req_handler(struct llc_prim_if_block *prim)
{
return 1;
}
EXPORT_SYMBOL(llc_sap_open); EXPORT_SYMBOL(llc_sap_open);
EXPORT_SYMBOL(llc_sap_close); EXPORT_SYMBOL(llc_sap_close);
...@@ -1348,7 +1348,6 @@ static int llc_ui_indicate(struct llc_prim_if_block *prim) ...@@ -1348,7 +1348,6 @@ static int llc_ui_indicate(struct llc_prim_if_block *prim)
"is gone for ->ind()...\n", __FUNCTION__); "is gone for ->ind()...\n", __FUNCTION__);
break; break;
case LLC_RESET_PRIM: case LLC_RESET_PRIM:
case LLC_FLOWCONTROL_PRIM:
default: break; default: break;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment