Thread (11 messages) 11 messages, 5 authors, 2017-08-17

Re: [PATCH net-next 3/3 v4] drivers: net: ethernet: qualcomm: rmnet: Initial implementation

flat view

From: Subash Abhinov Kasiviswanathan <hidden>
Date: 2017-08-16 17:46:50

quoted
+struct rmnet_phys_ep_conf_s {
The name is cryptic. Why "_s"?
quoted
+
+struct rmnet_vnd_private_s {
Again, cryptic.

quoted
+	struct rmnet_logical_ep_conf_s local_ep;
+	u32 msg_enable;
+};
Hi Jiri

The _s was to indicate struct. I'll remove that.
quoted
+rx_handler_result_t rmnet_ingress_handler(struct sk_buff *skb)
+{
+	struct rmnet_phys_ep_conf_s *config;
I still fail to understand why the name of this is "config". Please
change to something else across whole code. Including the name of the struct.
quoted
+	struct net_device *dev;
+	int rc;
+
+	if (!skb)
+		return RX_HANDLER_CONSUMED;
+
+	dev = skb->dev;
+	config = rmnet_get_phys_ep_config(skb->dev);
You have dev. Why not use dev?
quoted
+rx_handler_result_t rmnet_rx_handler(struct sk_buff **pskb)
+{
+	return rmnet_ingress_handler(*pskb);
This is just silly. Why you don't have the content of rmnet_ingress_handler
right here?
I'll make these changes now.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help