Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
775bd1e4
Commit
775bd1e4
authored
Aug 07, 2021
by
Antoine Kaufmann
Browse files
dist: make cpplint happy
parent
dd244343
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
.lint-files
.lint-files
+2
-0
dist/net_rdma.c
dist/net_rdma.c
+0
-1
dist/net_rdma.h
dist/net_rdma.h
+3
-3
dist/rdma.c
dist/rdma.c
+3
-3
dist/utils.c
dist/utils.c
+2
-1
dist/utils.h
dist/utils.h
+3
-3
No files found.
.lint-files
View file @
775bd1e4
dist/*.c
dist/*.h
sims/net/*/*.c
sims/net/*/*.cc
sims/nic/corundum/*.cc
...
...
dist/net_rdma.c
View file @
775bd1e4
...
...
@@ -107,7 +107,6 @@ static int ParseArgs(int argc, char *argv[]) {
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
opts
))
!=
-
1
)
{
switch
(
c
)
{
case
'l'
:
mode_listen
=
true
;
...
...
dist/net_rdma.h
View file @
775bd1e4
...
...
@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef DIST_NET_RDMA_
NET_RDMA_
H_
#define DIST_NET_RDMA_
NET_RDMA_
H_
#ifndef DIST_NET_RDMA_H_
#define DIST_NET_RDMA_H_
#include <arpa/inet.h>
#include <stdbool.h>
...
...
@@ -111,4 +111,4 @@ int RdmaPassEntry(struct Peer *peer, uint32_t n);
int
RdmaPassReport
();
int
RdmaEvent
();
#endif // DIST_NET_RDMA_NET_RDMA_H_
\ No newline at end of file
#endif // DIST_NET_RDMA_H_
dist/rdma.c
View file @
775bd1e4
...
...
@@ -42,7 +42,7 @@ struct NetRdmaReportMsg {
uint32_t
written_pos
[
MAX_PEERS
];
uint32_t
clean_pos
[
MAX_PEERS
];
bool
valid
[
MAX_PEERS
];
}
__attribute__
((
packed
));
}
__attribute__
((
packed
));
struct
NetRdmaMsg
{
union
{
...
...
@@ -60,7 +60,7 @@ struct NetRdmaMsg {
kMsgNet
,
kMsgReport
,
}
msg_type
;
}
__attribute__
((
packed
));
}
__attribute__
((
packed
));
static
struct
rdma_event_channel
*
cm_channel
;
static
struct
rdma_conn_param
conn_param
=
{
};
...
...
@@ -651,4 +651,4 @@ int RdmaPassReport() {
}
return
0
;
}
\ No newline at end of file
}
dist/utils.c
View file @
775bd1e4
...
...
@@ -214,4 +214,5 @@ void *ShmMap(int shm_fd, size_t *psize) {
*
psize
=
statbuf
.
st_size
;
return
p
;
}
\ No newline at end of file
}
dist/utils.h
View file @
775bd1e4
...
...
@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef DIST_
NET_RDMA_
UTILS_H_
#define DIST_
NET_RDMA_
UTILS_H_
#ifndef DIST_UTILS_H_
#define DIST_UTILS_H_
#include <stddef.h>
...
...
@@ -35,4 +35,4 @@ int UxsocketSendFd(int connfd, void *data, size_t len, int fd);
int
ShmCreate
(
const
char
*
path
,
size_t
size
,
void
**
addr
);
void
*
ShmMap
(
int
shm_fd
,
size_t
*
size
);
#endif // DIST_NET_RDMA_UTILS_H_
\ No newline at end of file
#endif // DIST_UTILS_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment